Issue
-
During the upgrade process,
UpgradeImageTypeContent#copyJournalArticleImagesToJournalRepositorycopies all journal article images into the Document Library repository. In order to achieve this,DLFileEntryAPI is called, which creates aDLFileEntryrecord and also creates aDLFileVersionrecord per image. Before finishing that method a listener, which populates the metadata for theDLFileVersionrecords, is fired and an exception is thrown at this point when trying to index the metadata:WARN [liferay/document_library_raw_metadata_processor-1][RawMetadataProcessorMessageListener:38] Unable to save metadata for file version 2097347 java.lang.NullPointerException
Environment
- Liferay EE 6.2
- Liferay DXP 7.1
Resolution
- LPS-97044 has been created to address the behavior.
Additional Information
- Reference to the code can be found here:
https://github.com/liferay/liferay-portal/blob/7.1.x/portal-impl/src/com/liferay/portlet/documentlibrary/util/RawMetadataProcessorImpl.java#L188