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

StringIndexOutOfBoundsException occurs when setting portal.proxy.path

    Details

      Description

      Steps:
      1. Set 'portal.proxy.path=/portal' in portal-ext.properties
      2. Start the portal

      Result: During the startup, it throws error:

      ERROR [http-bio-8080-exec-1][StripFilter:83] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1875)
      at com.liferay.portal.servlet.FriendlyURLServlet.getPathInfo(FriendlyURLServlet.java:183)
      at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:103)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      

      Please see attached log file for detailed information.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              sunny.pang Sunny Pang (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 9 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M4