-
Notifications
You must be signed in to change notification settings - Fork 78
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
Adjust URL-encoding rules #1663
Comments
Thanks for writing this up, @kubukoz! |
FYI, I'm going to attempt picking this up. @kubukoz suggested in Discord:
|
@bpholt, FYI, I'm afraid I'm nowhere close to getting you the corporate CLA you've asked for :( |
@Baccata thoughts on the or should we make some sort of |
I agree with starting with opt-in, and possibly opt-out later. I disagree with making it always enabled, as it may prevent some usecases. |
We're relying on http4s to do our URLencoding for us, in both query and path parameters. However, it looks like this isn't following the smithy spec:
https://smithy.io/2.0/spec/http-bindings.html#httplabel-serialization-rules
http4s skips escaping of more than that - e.g.
:
, which is most notably part of any AWS ARN, making it currently impossible to e.g. call Lambdas across accounts.We should update this - do our own pathencoding, where we'll have control over which characters we escape.
Now, this can be an incompatible change that'll break some APIs if we just do it for everyone - would like to avoid that. I propose:
SimpleRestJson
SimpleRestJson
, with a deprecated methodWe could keep it forever, but since the spec says it's a MUST, I'd rather keep it consistent.
Bonus points - verify if our handling of queries is compliant.
The text was updated successfully, but these errors were encountered: