-
Notifications
You must be signed in to change notification settings - Fork 597
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
fix double encoding of url #1412
Conversation
changelog detected ✅ |
9912703
to
b1fbbd8
Compare
ah, i see what is happening here; the instead, i'd prefer we look at a way to address this in
WDYT? i'd love to make this the default but i think it may potentially break some usages of it (but i could be wrong!) |
That seems like it could also be a problem, but specifically the issue isn't with double encoding a query param but with a path parameter. The endpoints take the url as a path parameter. For example if the url was Since |
ah sorry. I must have misread the sprintf as I thought this was an issue in the query parameter. if this is in the path, any reason why we need to be manually escaping it? any reason we don't just pass it though as is and have the server side handle any security concerns? |
Because a request the the endpoint The endpoint routing gets confused and doesn't send it to the proper upstream.
This just seems to be an annoyance with accepting a URL as a path parameter instead of query param or JSON body. |
👍 for now, let's leave this as is and when i'm back we'll have a chat about this. in a generated SDK world, this will be making your maintenance/life alot harder than what it needs to be so we'll see what we can come up with to minimise that. |
This functionality has been released in v0.79.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
This fixes a bug where
buildURI
would double encode forward slashes in the theURL
parameter.Let me know if there is a better way to handle this.
Has your change been tested?
I have tested with a personal zone with URLs that include multiple path segments.
I updated the unit tests to use a URL that has a longer path with multiple segments.
Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?
Checklist:
and relies on stable APIs.