Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-47904

Portlet with context path (pound sign in war file) cannot be deployed

    Details

      Description

      The Pound Sign # is not allowed in the portled id, however to dynamically update a war file with a different context path the Pound Sign is needed for tomcat deployment (see http://tomcat.apache.org/tomcat-7.0-doc/config/context.html) to specifiy the context path in the war file name.

      The error message is Invalid portlet id xxx from SecurityPortletContainerWrapper.

      In Liferay CE 6.1 it was working, to fix it (if it is possible to allow the pound sign back againa patch of portal-impl.jar is needed (see liferay-portal-src-6.2-ce-ga2/portal-impl/src/com/liferay/portlet/SecurityPortletContainerWrapper.java, add the check with c == CharPool.Pound after c == CharPool.UNDERLINE:
      if ((c == CharPool.UNDERLINE) || (c == CharPool.POUND))

      {continue;}

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              oliver.egger@visionary.ch Oliver Egger (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 4 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M4