Issue
-
When uploading a Document, the ddmFormValuesMap that is passed to the addFileEntry API has the wrong fieldReference. The fieldReference is set to the name instead of the fieldReference.
While the fieldReference and name are often the same (by default), they are not necessarily so. Users can (and do) intentionally set the fieldReference to a value that is more easily understandable for them, to make it easier for them to reference the field from their custom code.
While this bug does not have any user-visible consequences in vanilla Liferay, it does have major consequences for users who wish to use custom code that extends from the addFileEntry API.
Environment
- DXP 7.4
Resolution
- This issue was resolved by LPS-178838 and a hotfix should be requested from Liferay Support with it.