Message Boards

Incorrect Document Being Downloaded After Version Revert Liferay 6.2 CE GA4

Purvesh Kothari, modified 7 Years ago.

Incorrect Document Being Downloaded After Version Revert Liferay 6.2 CE GA4

New Member Posts: 2 Join Date: 3/2/15 Recent Posts
Hello,

I am using Liferay 6.2 CE GA4.

I am facing an issue with Document and Library portlet when I revert the document to the older version from Version History table. After reverting the document, when I download the file from the File List (see attached image as reference) it gives me the file of earlier version from which it has been reverted to.

e.g. When I revert current version(v1.2) to v1.0, a new v2.0 is created. When I download the file, file being downloaded is of v1.2 instead of v1.0 to which it was reverted.

One observation I made is, a new entry is added to DLFileVersion table with proper data, but the entry in DLFileEntry table is not being updated at all.

Any idea on how to resolve this issue would be helpful.

Thank you.