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

Regression of MTOMCAT-54 in tomcat7-maven-plugin

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.0
    • Component/s: tomcat7
    • Labels:
      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

              • Assignee:
                olamy Olivier Lamy (*$^¨%`£)
                Reporter:
                jwunderle Justin Wunderle
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: