fix(ocm): probe standardized .well-known endpoint

- Add `.well-known/ocm` to remote endpoint discovery checks.
- Improves compatibility with newer OCM deployments when probing remote servers.

Signed-off-by: Micke Nordin <kano@sunet.se>
pull/55829/head
Micke Nordin 3 months ago committed by Micke Nordin
parent 4174c580b3
commit 111fa240bc
  1. 1
      apps/files_sharing/lib/External/Storage.php

@ -238,6 +238,7 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage,
try {
return $this->testRemoteUrl($this->getRemote() . '/ocm-provider/index.php')
|| $this->testRemoteUrl($this->getRemote() . '/ocm-provider/')
|| $this->testRemoteUrl($this->getRemote() . '/.well-known/ocm')
|| $this->testRemoteUrl($this->getRemote() . '/status.php');
} catch (\Exception $e) {
return false;

Loading…
Cancel
Save