You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/08/16 19:31:48 UTC

[Bug 55434] New: The path /foo/a/a/bar causes IllegalArgumentException when WsServerContainer creates UriTemplate

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: dev@tomcat.apache.org
          Reporter: rstoyanchev@yahoo.com

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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55434] The path /foo/a/a/bar causes IllegalArgumentException when WsServerContainer creates UriTemplate

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55434

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in trunk and will be in 8.0.0-RC2.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org