Skip to content
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

Clarify the description of when and how segments are re-encoded #758

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion spec/src/main/asciidoc/servlet-spec-body.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,9 @@ All segments that are exactly `"."` are removed from the segment series. Segment

. **Concatenate segments.**
+
The segments are concatenated into a single path string with each segment preceded by the `"/"` character. If there are no segments remaining, the resulting path is `"/"`. If a segment contains the "/" or "%" characters, and the container is configured to not reject the request for containing an encoded `"/"`, then the container should re-encode those characters to the %nn form. If any characters are re-encoded, then the `"%"` must also be re-encoded.
The segments are concatenated into a single path string with each segment preceded by the `"/"` character.
If there are no segments remaining, the resulting path is `"/"`.
If the container is configured not to reject URIs containing an encoded `"/"` then all instances of `"/"` and `"%"` in the individual segments must be `%nn` encoded before concatenating them.

. **Mapping URI to context and resource.**
+
Expand Down Expand Up @@ -8586,6 +8588,8 @@ link:https://github.com/eclipse-ee4j/servlet-api/issues/542[Issue 542]::
Add support for RFC 8297 (Early Hints) via a new method `sendEarlyHints()` on
the `HttpServletResponse`

Clarify the description of when and how segments are re-encoded as part of URI Path Canonicalization.

=== Changes Since Jakarta Servlet 6.0

link:https://github.com/eclipse-ee4j/servlet-api/issues/59[Issue 59]::
Expand Down