Skip to content

Commit

Permalink
Fix secondary issue in #300 - context root mapping with or without /
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jan 27, 2023
1 parent 849ef55 commit 2f9c266
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions spec/src/main/asciidoc/servlet-spec-body.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6094,10 +6094,11 @@ mapping.
* A string beginning with a `"*."` prefix
is used as an extension mapping.

* The empty string (`+""+`) is a special URL pattern
that exactly maps to the application's context root, i.e., requests of
the form `http://host:port/<context-root>/`. In this case the path info is
`"/"` and the servlet path is empty string (`+""+`).
* The empty string (`+""+`) is a special URL pattern that exactly maps
to the application's context root, i.e., requests of the form
`http://host:port/<context-root>` or `http://host:port/<context-root>/`.
In this case the path info is `"/"` and the servlet path is empty string
(`+""+`).

* A string containing only the `"/"`
character indicates the "default" servlet of the application. In this
Expand Down Expand Up @@ -8560,6 +8561,12 @@ link:https://github.com/eclipse-ee4j/servlet-api/issues/275[Issue 275]::
Containers may provide an option to send redirects using a location header with
a relative URL.

link:https://github.com/eclipse-ee4j/servlet-api/issues/300[Issue 300]::
Correct the wording in section 12.2 since the context path is not always
the empty string when a servlet is mapped using context root mapping.
Also clarify that context root mapping occurs for URIs with or without the
trailing `/`.

link:https://github.com/eclipse-ee4j/servlet-api/issues/316[Issue 316]::
Clarify the behaviour of `HttpServletMapping.getMatchValue()`.

Expand Down

0 comments on commit 2f9c266

Please sign in to comment.