Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X, Master
-
7.1.x
-
Committed
-
3
Description
Reproduction steps:
- Start a master bundle
- Create a new site
- Create a new web content with a special character in the title. E.g.: "Special Char aŐb"
- Make sure that the saved friendly URL of this content is "special-char-aŐb" in DB it will be "special-char-a%C5%90b"
- Create a second web content (title can be anything), set its friendly URL to "special-char-a-c5-90b" (every special character of the encoded string replaced with "-")
- Turn on local staging
Expected: Local stating activated successfully.
Actual: Initial publication fails, DuplicateFriendlyURLEntryException in the logs:
2019-01-14 14:43:02.379 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:173] Unable to execute background task com.liferay.exportimport.kernel.lar.PortletDataException: {mvccVersion=0, friendlyURLEntryLocalizationId=6, companyId=20099, friendlyURLEntryId=37081, languageId=en_US, urlTitle=special-char-a-c5-90b, groupId=37052, classNameId=20501, classPK=37077} ... Caused by: com.liferay.friendly.url.exception.DuplicateFriendlyURLEntryException: {mvccVersion=0, friendlyURLEntryLocalizationId=6, companyId=20099, friendlyURLEntryId=37081, languageId=en_US, urlTitle=special-char-a-c5-90b, groupId=37052, classNameId=20501, classPK=37077}