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

locale.prepend.friendly.url.style=2 does not catch NoSuchGroupException

    Details

      Description

      When setting

      locale.prepend.friendly.url.style=2

      and sending a site, that does not exists, (e.g. /web/asdf), NoSuchGroupException appears in the log, while it should be catched and handled.

      Reproduction:

      I. Control test:

      1. Launch a master bundle, without any properties
      2. Send the Url localhost:8080/web/no-such-site

      Result: No exceptions in the log.

      II. Main test
      1. Use the following property: locale.prepend.friendly.url.style=2
      2. Restart the server
      3. Send URL: localhost:8080/web/no-such-site

      Result:

      2019-02-28 09:57:17.022 ERROR [http-nio-8080-exec-4][I18nServlet:118] com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the key {companyId=20099, friendlyURL=/asdgasg}
      com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the key {companyId=20099, friendlyURL=/asdgasg}
      	at com.liferay.portal.service.persistence.impl.GroupPersistenceImpl.findByC_F(GroupPersistenceImpl.java:3406)
      
      

      Expected: The exception should be catched and supressed.

      Reproduced on: 7.1 dxp-7 and master (d12677e032da33fc2b82a3c4a3b5dbceed6b6a62)

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            vendel.toreki Vendel Töreki
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 38 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP96
                7.0.10.15 DXP SP15
                7.0.X
                7.1.10 DXP FP10
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master