ocm: handshake callback follows OCS discovery, legacy GET flavor (#455) #482
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-455e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Live dogfood trace: after the
overwrite.cli.urlfix, NC'srequest-shared-secretarrived and was accepted (200) — but our callback got 404, because Nextcloud 34 does not serve/ocs/v2.php/apps/federation/api/v1/get-shared-secret. Its/ocs-provideradvertises the real endpoint:FEDERATED_SHARING.endpoints["shared-secret"] = /ocs/v2.php/cloud/shared-secret, a GET with query parameters and theOCS-APIRequest: trueheader (verified live against nextcloud.c0rdyceps.ch: GET → 403 on a dummy token, exactly the validation semantics).fetchDirSecretnow: fetches the peer's/ocs-provider/, uses the advertised shared-secret endpoint GET-style with the OCS header, and keeps the modern POST path as fallback when discovery is absent. Trailing-slash source retry unchanged; refusal logs now include the endpoint.TDD: the corrected-protocol test (discovery + GET + header assertions) witnessed red on the runner against the old POST implementation; a second test pins the discovery-less POST fallback.