Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, Master
-
7.1.x, 7.0.x
-
Committed
-
0.25
-
3
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)