Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51825

getFieldsMap method on DLFileEntry fails if a Metadata Set is added to the Document Type

    Details

      Description

      Steps to reproduce the problem:

      1. Create a Document Type
      2. Create a document with the new Document Type, take note of the fileEntryId
      3. Edit the Document Type and associate a Metadata Set to it
      4. 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}

      "

        Attachments

        1. fixed.png
          fixed.png
          26 kB
        2. reproduced.png
          reproduced.png
          19 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 8 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 M3