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

Different locales can break AssetPublisher links when using non-ascii urlTitles

    Details

      Description

      LPS-101369 creates this regression.

      1. Please make sure the default language of this web content is English.
      2. Add an Asset Publisher portlet onto the page. -> Click the article title, and the article is displayed correctly
      3. Stop portal - > Add the following properties into portal-ext.properties
        company.default.locale=my_MM
        locales=en_US,my_MM
        locales.enabled=en_US,my_MM
        locale.prepend.friendly.url.style=1
        auth.pipeline.enable.liferay.check=false
      4. Start portal -> go to the add web content page. The default language should be English.
      5. Go to Site Settings -> Languages -> Choose "Define a custom default language and additional available languages for this site. " -> Change the "Default Language" to "Burmese (Myanmar)".
      6. Go to Content - Web Content, - > Add a new web content with non-latin language title such as သုတေသန (The default language displayed on page should be Burmese (Myanmar)).
      7. Go to page used in Step 2, and click the title of the web content.

      Expected behavior: The article is displayed correctly.
      Actual behavior: The following error is reported on page:

      Asset Publisher is temporarily unavailable.
      And the following error is reported in the log:

      2019-09-20 02:49:54.786 ERROR [http-nio-8080-exec-6][PortletRequestDispatcherImpl:295] Unable to dispatch request: com.liferay.journal.exception.NoSuchArticleException: No JournalArticle exists with the key {groupId=20142, urlTitle=中国新, status=-1}2019-09-20 02:49:54.786 ERROR [http-nio-8080-exec-6][PortletRequestDispatcherImpl:295] Unable to dispatch request: com.liferay.journal.exception.NoSuchArticleException: No JournalArticle exists with the key {groupId=20142, urlTitle=中国新, status=-1}2019-09-20 02:49:54.789 ERROR [http-nio-8080-exec-6][PortletServlet:112] javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.journal.exception.NoSuchArticleException: No JournalArticle exists with the key {groupId=20142, urlTitle=中国新, status=-1}javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.journal.exception.NoSuchArticleException: No JournalArticle exists with the key {groupId=20142, urlTitle=中国新, status=-1} at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:297) at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:124)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Joshua Cords
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP87
                  7.0.10.12 DXP SP12
                  7.0.X