Conversation
f4d1897 to
c7f8a9f
Compare
kesselb
commented
Sep 30, 2024
| 'auth' => [$userName, $sharedSecret], | ||
| 'base_uri' => $url, | ||
| 'body' => $this->buildSyncCollectionRequestBody($syncToken), | ||
| 'headers' => ['Content-Type' => 'application/xml'] |
Contributor
Author
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
a16eb6c
Compare
Contributor
Author
|
ClientTest 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? |
come-nc
approved these changes
Sep 30, 2024
ChristophWurst
approved these changes
Sep 30, 2024
a16eb6c to
5576f05
Compare
…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
6be0043
Compare
Contributor
Author
|
/backport 8708164 to stable30 |
Contributor
Author
|
/backport 8708164 to stable29 |
1 task
1 task
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Client.preventLocalAddress expects an absolute URL, which means the base_uri option cannot be used.
Regression from #46002
TODO
Checklist