Skip to content

feat: Check remove server connectivity#4361

Closed
juliusknorr wants to merge 1 commit into
mainfrom
feat/connectivity-check
Closed

feat: Check remove server connectivity#4361
juliusknorr wants to merge 1 commit into
mainfrom
feat/connectivity-check

Conversation

@juliusknorr
Copy link
Copy Markdown
Member

@juliusknorr juliusknorr commented Dec 27, 2024

  • Fetch remote endpoint to check connectivity
  • Cover all status cases
  • Make API call optional depending on availability of the new endpoint
  • Properly expose error messages with hints in the settings

Signed-off-by: Julius Knorr <jus@bitgrid.net>
],
]);
$result = json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR);
if ($result['status'] === 'CheckStatus::WopiHostNotAllowed') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ($result['status'] === 'CheckStatus::WopiHostNotAllowed') {
if ($result['status'] === 'WopiHostNotAllowed') {

I have simplified this to just be WopiHostNotAllowed in CollaboraOnline/online#10807

I am taking the time window until mid-january and next COOL stable version to make small API corrections before they are completely set in stone.
You can see the MR related at the end of CollaboraOnline/online#9202

public function testCallback(OutputInterface $output): void {
$url = $this->parser->getUrlSrcValue('Capabilities');
if ($url === '') {
// Fixme can we skip early if the collabora version does not have the wopiAccessCheck endpoint, maybe it can be exposed in discovery
Copy link
Copy Markdown
Contributor

@meven meven Dec 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was suggested will probably add to discovery.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be available with CollaboraOnline/online#10840 with hasWopiAccessCheck key in the /hosting/capabilities json answer.

@juliusknorr
Copy link
Copy Markdown
Member Author

Replaced by #4470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants