Uploaded image for project: 'JBoss Web'
  1. JBoss Web
  2. JBWEB-188

After removing the ROOT.war, NPE occurs and 200 OK is returned when browsing to a non existing path

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tomcat
    • Labels:
    • Environment:

      JBossWeb-2.0.0.GA_CP14 which come with EAP 4.2 CP09 and EAP 4.3 CP08

    • Steps to Reproduce:
      Hide

      1. Remove ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer
      2. Then use curl to browse to a non existing path like:
      $ curl -v http://localhost:8080/XXXX
      3. Then the console and server.log shows the NPE and empty page with http status code 200 OK is returned

      Show
      1. Remove ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer 2. Then use curl to browse to a non existing path like: $ curl -v http://localhost:8080/XXXX 3. Then the console and server.log shows the NPE and empty page with http status code 200 OK is returned
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Create an empty ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/

      Show
      Create an empty ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/

      Description

      After removing the ROOT.war, the server behaves as if it exists (200 OK is returned and page is loaded empty) and the console shows the following NPE when browsing to a non existing path.

      ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.NullPointerException
      at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:507)
      at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:449)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:239)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:636)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rmaucher Remy Maucherat
                  Reporter:
                  mmiura Masafumi Miura
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: