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

Set Localization Style to 0 cause IllegalArgumentException.

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: 7.0.0 M3
    • Labels:
      None
    • Environment:
      Tomcat 7.0.42 + MySQL 5.5.34. Portal master GIT ID: b21468dfb9390cdfd29f37f3f56517a8184db2d4.
        

      Description

      1. Navigate to '[Liferay Bundle]/webapps/ROOT/WEB-INF/classes/'.
      2. Edit portal-ext.properties and paste following code.
        locale.prepend.friendly.url.style=0
      3. Start the application server and sign in.
      4. Add a Page -> Add Language portlet to the page.
      5. Click the American Flag (USA) and assert that the URL displays http://localhost:8080/web/guest/language-test-page.
      6. Click the Spanish Flag (Spain).
      7. Assert the URL.

      Expected result:
      After changing the localization style to"0" the URL shouldn't be change despite changing languages and there should no exception in the console.

      Actual result:
      Exceptions displays in the console and Language portlet is temporarily unavailable.(This issue only affect on master)

      09:06:58,316 ERROR [http-bio-7080-exec-2][render_portlet_jsp:132] null
      java.lang.IllegalArgumentException:  is not a valid redirect
              at com.liferay.portlet.ActionResponseImpl.sendRedirect(ActionResponseImpl.java:37)
              at com.liferay.portlet.language.action.ViewAction.processAction(ViewAction.java:160)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:166)
              at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
              at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)
              at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:649)
              at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:312)
              at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:402)
              at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:110)
              at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:109)
              at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:75)
              at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:115)
              at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:356)
              at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:178)
              at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:79)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:173)

      d

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                he.song Serena Song (Inactive)
                Reporter:
                he.song Serena Song (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, 47 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 M3