-
Notifications
You must be signed in to change notification settings - Fork 294
Updates to HTTP request paths in preparation for removing prefix matching behaviour. #6732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
In addition, we've recently removed requests to /host_rrds and /vm_rrds that XenCenter was making (prefix-matched to /host_rrd and /vm_rrd) - should we add these for compatibility, and indicate that they should be eventually removed? |
8e69e34 to
8b52a3b
Compare
|
Found some RBAC issues when running tests that I'm looking into. |
62af0ed to
9fae088
Compare
Requests in the Http library store the request path under the "uri" field name - query parameters are stored separately. This is confusing and unhelpful; "path" is clearer and more accurate. Signed-off-by: Christian Pardillo Laursen <[email protected]>
PyRPC uses "/RPC2" by default, which is currently getting redirected to "/" by the prefix matching logic on routes. Adding this endpoint in preparation for removing the prefix matching. Signed-off-by: Christian Pardillo Laursen <[email protected]>
robhoes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one mistake: see above. Other than that it looks good.
XenCenter was using the above paths erroneously until build 8460. Adding these paths for backwards compatibility. Signed-off-by: Christian Pardillo Laursen <[email protected]>
Signed-off-by: Christian Pardillo Laursen <[email protected]>
|
All done, thanks for spotting that. |
We're looking to remove the prefix matching that our homebrew HTTP server does with routes, so I've updated a couple things in the code to remove any reliance on this behaviour. In particular: