Uh oh!
There was an error while loading. Please reload this page.
fix: make federation address book sync work with allow_local_remote_servers = false - #48451
Conversation
f4d1897 to
c7f8a9fCompare| 'auth' => [$userName, $sharedSecret], | ||
| 'base_uri' => $url, | ||
| 'body' => $this->buildSyncCollectionRequestBody($syncToken), | ||
| 'headers' => ['Content-Type' => 'application/xml'] |
There was a problem hiding this comment.
We could also add 'nextcloud' => ['allow_local_address' => true], to always allow private IP ranges for address book federation. But we should also enable it for the initial handshake then, and therefore that's something for a follow-up.
c7f8a9f to
a16eb6cCompareClientTest is failing: The above URL is invalid, and guzzle/curl will reject it with:
If we keep a16eb6c, then the notable change is that the request is just rejected a bit earlier. Though, it might be nicer to use a different/new exception for it. Opinions? |
a16eb6c to
5576f05Compare…ervers = false Client.preventLocalAddress expects an absolute URL, which means the base_uri option cannot be used. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This change should make it easier to spot wrong uses of the HTTP client on development setups where allow_local_remote_servers is usually true. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5576f05 to
6be0043Comparekesselb
commented
Oct 1, 2024
/backport 8708164 to stable30 |
kesselb
commented
Oct 1, 2024
/backport 8708164 to stable29 |
Summary
Client.preventLocalAddress expects an absolute URL, which means the base_uri option cannot be used.
Regression from #46002
TODO
Checklist