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

When Upgrading to 6.2, any other Localized Friendly URL deleted and automatically transferred to the English localization

    Details

      Description

      When user upgrades from a localized Site with a localized Friendly URL, an empty Friendly URL is given. The localized Friendly URL is transferred to the English Friendly URL.

      Here are the steps to reproduce:
      1. Start 6.1.30 as a localized site (include company.default.locale=de_DE in portal-ext)
      2. Create a friendly URL on any page
      3. Shutdown Liferay
      4. Upgrade to 6.2 EE (include company.default.locale=de_DE in 6.2 portal-ext)
      5. Click Edit Page Icon
      6. Assert localized (German) Friendly URL is deleted
      7. Assert created Friendly URL is transferred to English locale
      8. Click Save
      9. Assert Blank Edit Page Menu
      10. Assert Exceptions

      21:24:47,931 ERROR [http-bio-8080-exec-4][IncludeTag:92] Current URL /web/guest/test?p_p_id=145&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&_145_groupId=10184&_145_selPlid=10458&_145_struts_action=%2Fdockbar%2Fedit_layout_panel&_145_closeRedirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Ftest generates exception: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
              at java.lang.String.substring(String.java:1875)
              at org.apache.jsp.html.portlet.layouts_005fadmin.edit_005flayout_jsp._jspService(edit_005flayout_jsp.java:1664)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.portlet.dockbar.edit_005flayout_005fpanel_jsp._jspService(edit_005flayout_005fpanel_jsp.java:1175)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:2169)
      

      Expected Result:
      Friendly URL is accurately upgraded to correct localization

      Actual Result:
      Any Friendly URL is automatically transferred to English localization

      Navigating to Localized Friendly URL still works afterward.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              john.co John Co
              Reporter:
              john.co John Co
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 18 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.1 CE GA2
                  6.2.X EE
                  7.0.0 M1