Repository navigation
test: infamy: Keep the percent-encoded RESTCONF path with a zone id host - #1727
Merged
Merged
Conversation
A zone id like %sw2p2 is not a valid escape, so requests gives up on its normal quoting and re-quotes every % in the URL, turning a key's %2F into %252F. The workaround only restored the host, and rousette aborts on the mangled key. QEMU never sees it since its zone names, d4a say, happen to parse as escapes.
mattiaswal
force-pushed
the
restconf-key-requote
branch
from
October 23, 2026 07:08
538006a to
dd74889
Compare
troglobit
approved these changes
Oct 23, 2026
troglobit
left a comment
Contributor
There was a problem hiding this comment.
Two small notes, neither blocking:
- The URL is now sent exactly as built. Anything outside a list key that still needs encoding, such as a space in some hand-written path, used to be quoted by requests. Now http.client will reject it. I didn't find any test that does this, and list keys are fully encoded.
- The 502s mean rousette aborted on the malformed key (02%3A00… after decoding once) instead of answering 400. That's a robustness bug in rousette worth reporting upstream. The abort probably also explains the "broken RESTCONF frontend" in the tests that followed.
Contributor
Author
I know, but the problem is we are not using long from the latest version of rousette, not think it is worth it. |
Contributor
|
Failure in new FDB test on Alder and Styx expected, separate fix for that incoming in PR #1723. |
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.
A zone id like %sw2p2 is not a valid escape, so requests gives up on
its normal quoting and re-quotes every % in the URL, turning a key's
%2F into %252F. The workaround only restored the host, and rousette
aborts on the mangled key. QEMU never sees it since its zone names,
d4a say, happen to parse as escapes.
Description
Checklist
Tick relevant boxes, this PR is-a or has-a: