https://issues.apache.org/bugzilla/show_bug.cgi?id=55434
Bug ID: 55434
Summary: The path /foo/a/a/bar causes IllegalArgumentException
when WsServerContainer creates UriTemplate
Product: Tomcat 8
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
WsFilter calls WsServerContainer.findMapping("/foo/a/a/bar"), which in turn
calls new UriTemplate(path). If the path contains repeated segments, it causes
the following code in the UriTemplate constructor to throw an exception:
Segment old =
this.segments.put(segment, new Segment(index, segment));
if (old != null) {
throw new IllegalArgumentException(
sm.getString("uriTemplate.duplicateName", segment));
}
This would be valid if the duplicates were URI variable names but not when
their plain path segments.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]