Issue
- I have upgraded from DXP 7.0 to DXP 7.4. After the successful upgrade, we noticed that the document-friendly URLs are missing on DXP 7.4
Reproduction Steps:
1. Set up DXP 7.0 with fp de-102
2. Go to Control Panel --> Content --> Documents and Media and upload a basic document.
3. Shut down the instance.
7. Upgrade the to DXP 7.4.
8. On the upgraded DXP 7.4 instance go to Content & Data --> Documents & Media, open the document, and check its friendly URL.
Actual Result: The document-friendly URL is missing.
Expected Result: The document-friendly URL should be populated.
Note: If you republish the document, its friendly URL will be populated.
Environment
- Liferay DXP 7.4
Resolution
- The behavior is expected. There is no upgrade process to generate new friendly URLs for the documents as they can be generated on demand. The old-style URLs (used in previous versions) still work. So you have the option to update the document and the new-style URL will be generated or you can use the old-style URL from the previous version to update the document FURL.
- In case you have a large number of documents, you can execute the attached groovy script "GenerateDocumentFURL.txt" which will populate the document-friendly URLs to the new-style URL from the UI by going to Control Panel --> SYSTEM --> Server Administration --> Script
Note: BEFORE RUNNING THE SCRIPT, PLEASE MAKE A BACKUP OF YOUR DATABASE AND FIRST TEST THE SCRIPT IN A LOWER ENVIRONMENT.