Skip to content

Commit 111fa24

Browse files
committed
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 <[email protected]>
1 parent 4174c58 commit 111fa24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/files_sharing/lib/External/Storage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ protected function testRemote(): bool {
238238
try {
239239
return $this->testRemoteUrl($this->getRemote() . '/ocm-provider/index.php')
240240
|| $this->testRemoteUrl($this->getRemote() . '/ocm-provider/')
241+
|| $this->testRemoteUrl($this->getRemote() . '/.well-known/ocm')
241242
|| $this->testRemoteUrl($this->getRemote() . '/status.php');
242243
} catch (\Exception $e) {
243244
return false;

0 commit comments

Comments
 (0)