The URL Factory should use the contextPath instead of the contextName
---------------------------------------------------------------------

                 Key: XWIKI-2056
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2056
             Project: XWiki Platform
          Issue Type: Bug
          Components: Actions and URLs, Core
    Affects Versions: 1.3 M1
            Reporter: Sergiu Dumitriu


In web.XWikiServletURLFactory#init, the first path of the URL (wrongly name 
servletPath) is initialized with ServletContext().getServletContextName(), 
which should be used for the application name displayed in a container 
management application, and not as part of the URL. The proper value is 
request.getContextPath(), which is automatically set to reflect the application 
location.

This will allow:
- Easy changing the application directory and context name; right now, the 
displayName property in web.xml must be changed, too
- Use a proper display name to reflect the application contents (XWiki 
Enterprise, XWiki Watch, Chronopolys, etc)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to