Issue
- The URL which is generated for Documents that are uploaded to the Documents and Media portlet contains a string of numbers, letters, and a 't' parameter after the name of the document. If there is any way to get rid of that string and parameter so that the URL ends with just the document name.
-
Steps to reproduce
1) Start a clean instance of Liferay DXP 7.2 with fix pack 5.
2) Go to Content & Data -> Documents and Media, and upload a pdf file.
3) Select the file uploaded and go to its information -> Latest Version URL
Expected Result: The last section in the URL for the document is just the document name (i.e. /Document-Name.pdf)/documents/544310/552443/KED-Report-Feed+Inflation-Dec2020.pdf
Actual Result: The end of the URL contains some additional information, including a string of letters and numbers and a 't' parameter./documents/544310/552443/KED-Report-Feed+Inflation-Dec2020.pdf/de057edb-a991-081f-bc29-bead63e7aacd?t=1607548870902
Environment
- Liferay DXP 7.2 Fix Pack 5
Resolution
- This is the intended behavior of the Liferay DXP as there is the purpose behind every parameter of the URL.
- Let's say this URL has been encountered:
http://localhost:8080/documents/20124/0/pdf.pdf/4032f01f-bf0e-0406-53f3-a6b6ed65d95d?t=1610662152807
Which can be divided into argumentshttp://localhost:8080/assetType/groupId/folderId/fileName/UUID?t=token
From this point, the document's required information can be seen.
assetType
groupId
UUID
t (Timestamp argument)
Additional Information