Bug 42944 - plus sign in url-pattern in servlet-mapping does not work
plus sign in url-pattern in servlet-mapping does not work
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Catalina
5.5.20
Other other
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-07-20 09:32 UTC by Stefan Wachter
Modified: 2007-08-03 17:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Wachter 2007-07-20 09:32:19 UTC
Hi all,

I had servlet-mappings that contain plus signs (they were created by JspC), e.g.:

    <servlet-mapping>
      <servlet-name>org.apache.jsp.suchergebnis_005fbu_002bbb_jsp</servlet-name>
      <url-pattern>/suchergebnis_bu+bb.jsp</url-pattern>
    </servlet-mapping>

This mapping does not work (the referred class is present)! When I change the
original file names of the JSPs such that the plus signs are replaced by a minus
signs the following mapping results:

    <servlet-mapping>
      <servlet-name>org.apache.jsp.suchergebnis_005fbu_002dbb_jsp</servlet-name>
      <url-pattern>/suchergebnis_bu-bb.jsp</url-pattern>
    </servlet-mapping>

Now the mapping works.

Therefore I assume that there is a bug in handling servlet mappings with plus
signs in their url pattern.
Comment 1 Mark Thomas 2007-08-03 17:10:16 UTC
This has been fixed in svn for 5.5.x and 6.0.x and will be included in the next
release of each.