[jboss-jira] [JBoss JIRA] (WFLY-2916) getSerlvetPath() truncates path at the first semicolon
B Tomic (JIRA)
issues at jboss.org
Sat Aug 8 20:46:03 EDT 2015
[ https://issues.jboss.org/browse/WFLY-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096739#comment-13096739 ]
B Tomic edited comment on WFLY-2916 at 8/8/15 8:46 PM:
-------------------------------------------------------
The problem here is not that parameters got omitted (as that is by the spec), but that *everything* after the *first* semicolon was truncated. This means significant (non-parameter) parts of the Servlet path get lost. In the example above, it would mean the {{/multiple}} part of the URI is simply lost. This is clearly violating the spec.
Tomcat, as of version 7 at least (not sure about earlier), handles this correctly: it strips away the parameters, but the path remains intact. With the example above, for {{/data/matrixvars;foo=bar1/multiple;foo=bar2}} calling {{getServletPath()}} would yield {{/data/matrixvars/multiple}}
was (Author: phantasmo):
The problem here is not that parameters got omitted (as that is by the spec), but that *everything* after the *first* semicolon was truncated. This means significant (non-parameter) parts of the Servlet path get lost. In the example above, it would mean the _/multiple_ part of the URI is simply lost. This is clearly violating the spec.
> getSerlvetPath() truncates path at the first semicolon
> ------------------------------------------------------
>
> Key: WFLY-2916
> URL: https://issues.jboss.org/browse/WFLY-2916
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.0.0.Final
> Reporter: Rossen Stoyanchev
> Assignee: Stuart Douglas
>
> Given a URL path with path parameters (e.g. "/data/matrixvars;foo=bar1/multiple;foo=bar2"), depending on the Servlet mapping (e.g. with "/" the whole path after the context path is the servlet path), a call to getServletPath() is truncated after the first semicolon (e.g. "/data/matrixvars").
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list