-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Check remove server connectivity #4361
base: main
Are you sure you want to change the base?
Conversation
juliusknorr
commented
Dec 27, 2024
•
edited
Loading
edited
- 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') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
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.