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

Internal Server Error due to NoSuchLayoutException in UpdateLanguageAction

    Details

      Description

      Steps to Reproduce:

      1. Log in.
      2. Access with invalid redirect like: http://localhost:8080/en/c/portal/update_language?p_l_id=0&redirect=/o/invalid-url

       

      Expected Results:

      No internal error should be obtained, at most a 400 (Bad Request) should be returned.

       

      Actual Results:

      An internal error is obtained:

      Caused by: com.liferay.portal.kernel.exception.PortalException: Info display contributor is not available for /o/
      	at com.liferay.asset.display.page.portlet.BaseAssetDisplayPageFriendlyURLResolver._getLayoutDisplayPageProvider(BaseAssetDisplayPageFriendlyURLResolver.java:406) ~[?:?]
      	at com.liferay.asset.display.page.portlet.BaseAssetDisplayPageFriendlyURLResolver.getLayoutFriendlyURLComposite(BaseAssetDisplayPageFriendlyURLResolver.java:197) ~[?:?]
      	at com.liferay.portal.kernel.portlet.FriendlyURLResolver.getLayoutFriendlyURLSeparatorComposite(FriendlyURLResolver.java:51) ~[portal-kernel.jar:?]
      	at com.liferay.portal.util.PortalImpl.getLayoutFriendlyURLSeparatorComposite(PortalImpl.java:2934) ~[portal-impl.jar:?]
      	at com.liferay.portal.kernel.util.PortalUtil.getLayoutFriendlyURLSeparatorComposite(PortalUtil.java:1086) ~[portal-kernel.jar:?]
      	at com.liferay.portal.action.UpdateLanguageAction.getRedirect(UpdateLanguageAction.java:166) ~[portal-impl.jar:?]
      	at com.liferay.portal.action.UpdateLanguageAction.execute(UpdateLanguageAction.java:101) ~[portal-impl.jar:?]
      	at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:397) ~[portal-impl.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oziel.souza Oziel Souza
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Engineering Assignee:
              Mariano Álvaro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                13 weeks, 4 days ago

                  Packages

                  Version Package
                  7.2.X
                  7.3.10.3 DXP SP3
                  7.3.X
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master