-
Notifications
You must be signed in to change notification settings - Fork 121
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
Support for RFC 6570 "URI Template" #1152
Comments
I'd be a +1 as I think this makes sense. |
The RFC fits perfectly with the UriBuilder functionality and putting it to the Spec requirement seems natural to me. |
UriBuilder mandates throwing IllegalArgumentException for a missing template argument which is in contradiction to the RFC which skips missing arguments:
|
Depending on which part of Uri the template is used for, the template behavior changes For Uri, the path does not percent-encode reserved characters such as the exclamation mark "!" The RFC default template The query part, on the other hand, percent-encode the reserved characters. Hence, the template's default behavior behaves or does not behave as the default template as described in Section 3.2.2 of the RFC and it should be clearly described by the UriBuilder javadoc in the case of the RFC adoption. |
As proposed by @jansupol in a recent Jersey discussion the adoption of RFC 6570 "URI Template" could clarify some ambiguities in Jakarta REST's current definition of when to / when not to percent-encode template parameter values. Due to that, I hereby propose the mandatory support of RFC 6570 for Jakarta REST 4.0.
The text was updated successfully, but these errors were encountered: