-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 M3
-
Fix Version/s: 7.0.0 M3
-
Component/s: Documents & Media, Dynamic Data Mapping
-
Labels:None
-
Story Points:10
-
Liferay Contributor's Agreement:Accept
-
OS:Windows 8
-
JDK:Oracle Sun JDK 7
-
Application Servers:Apache Tomcat 7.0.42
-
Browsers:Chrome (latest)
-
Databases:HSQLDB 2
-
Git Pull Request:
Steps to reproduce the problem:
- Create a Document Type
- Create a document with the new Document Type, take note of the fileEntryId
- Edit the Document Type and associate a Metadata Set to it
- Execute this Javascript script:
fileEntry = Packages.com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntry(10483); fileEntry.getFieldsMap(fileEntry.getFileVersion().getFileVersionId());
The log shows the error: "Wrapped com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException: No DLFileEntryMetadata exists with the key
{DDMStructureId=10289, fileVersionId=10484}"