You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Neil Griffin (JIRA)" <ji...@apache.org> on 2019/04/03 21:41:00 UTC

[jira] [Created] (PLUTO-766) PageAdminPortlet.addPage(ActionRequest) does not check if the portlet context path already contains a leading forward-slash

Neil Griffin created PLUTO-766:
----------------------------------

             Summary: PageAdminPortlet.addPage(ActionRequest) does not check if the portlet context path already contains a leading forward-slash
                 Key: PLUTO-766
                 URL: https://issues.apache.org/jira/browse/PLUTO-766
             Project: Pluto
          Issue Type: Bug
          Components: portlets-admin
    Affects Versions: 3.0.1, 3.0.0
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.2


The following fragment of code in the {{PageAdminPortlet.addPage(ActionRequest)}} method does not check if the portlet context path already contains a leading forward-slash:

{code:java|title=PageAdminPortlet.java}
String contextPath = applicationName;
if (contextPath.length() > 0)
{
    contextPath = "/" + contextPath;
}
{code}

Because of this, the {{contextPath}} might end up with double forward-slashes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)