Affects Version/s: 7.0.X, Master
Component/s: ~[Archived] WCM > Publication
When a file is uploaded to a basic document and the extension of the Title* (name) of the file is changed, that new name is used when trying to download the file and an error occurs.
Steps to Reproduce:
1. Create a new basic document
2. Upload a file to the document (liferay-logo.png for my test); publish
3. Download the file
4. Edit file and change the extension within the file name (.png to .jpg for my test); publish
5. Download the file
The file downloads with the correct extension (.png for my test)
The file downloads with the new extension in the file name (.jpg in my test) Attempting to open the file fails due to "Error Interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)"
Branch: Reproduced (83cc7c4eeba3caa5bbab62d49038dfccb2c49025)
Master: Reproduced (2afbd3bc6125a7e30ae25ea27a37950157a99f56)
(See attached GIF file for demonstrated behavior)