glassfish
  1. glassfish
  2. GLASSFISH-15116

verifier does not allow "*" as servlet name in filter mapping

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_dev
    • Fix Version/s: 3.1_dev
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      WinXP

      Description

      My web.xml has the following filter mapping:

      <filter-mapping>
      <filter-name>Afilter</filter-name>
      <servlet-name>*</servlet-name>
      </filter-mapping>

      The Servlet 2.5 spec allows use of the special servlet name '*', see SRV.18.0.2 Filter All Dispatches.

      The verifier however, complains:

      Test Name : tests.web.FilterMapping
      Test Assertion : Filter mapping should be a correct URL or a servlet-name within the application. Please refer to Java Servlet 2.5 Specification Section #SRV.6.2.4 for further information.
      Test Description : For [ web25 ]
      Filter Mapping for [ Afilter ] has invalid servlet-name

      (it also correctly reports some other errors in my app; please ignore them)

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Good catch.

        Sending verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/web/FilterMapping.java
        Transmitting file data .
        Committed revision 43723.

        Show
        Sanjeeb Sahoo added a comment - Good catch. Sending verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/web/FilterMapping.java Transmitting file data . Committed revision 43723.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Dies Koper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: