Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juliusknorr
Copy link
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

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

@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.

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