You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Justin Wunderle (Commented) (JIRA)" <ji...@apache.org> on 2012/03/16 20:05:39 UTC

[jira] [Commented] (MTOMCAT-129) Regression of MTOMCAT-54 in tomcat7-maven-plugin

    [ https://issues.apache.org/jira/browse/MTOMCAT-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231525#comment-13231525 ] 

Justin Wunderle commented on MTOMCAT-129:
-----------------------------------------

A workaround is to run maven with -Dmaven.tomcat.path="" and don't set <path> to something else in the plugin's configuration (<path></path> is ok)
                
> Regression of MTOMCAT-54 in tomcat7-maven-plugin
> ------------------------------------------------
>
>                 Key: MTOMCAT-129
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-129
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1
>            Reporter: Justin Wunderle
>            Assignee: Olivier Lamy
>
> 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()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org