-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 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
-
Component/s: Core Infrastructure
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:0.25
-
Fix Priority:3
-
Git Pull Request:
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)