Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-129

Regression of MTOMCAT-54 in tomcat7-maven-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-1
    • 2.0
    • tomcat7
    • None

    Description

      In r1180428, the code that fixed MTOMCAT-54 was removed, so inside a webapp that is deployed at "/", request.getContextPath() will return "/" when it should return "".

      The bug is that, in general, trailing slashes on the path variable should be removed (it's not really a special case for "/", though it causes the worst effects in that case)

      See this link for the rules for how the contextPath should look: http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getContextPath()

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              jwunderle Justin Wunderle
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: