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

No fields are available in display page template based on Document type

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Info Framework
    • Labels:

      Description

      Step to reproduce:

      1. Add a document based on Basic Document
      2. Add a display page template with Document type and Basic Document subtype
      3. Add a Heading fragment to page
      4. Click the editable field of Heading

      Expected Results:
      There should be available fields to Field in mapping panel.

      Actual Results:
      The Field is disabled. And the following NPE is thrown in log console:

      2020-08-16 03:14:50.597 ERROR [http-nio-8080-exec-10][GetMappingFieldsMVCResourceCommand:73] Unable to get mapping fields
      java.lang.NullPointerException
              at com.liferay.document.library.web.internal.info.display.contributor.FileEntryInfoDisplayContributor.getInfoDisplayObjectClassPK(FileEntryInfoDisplayContributor.java:156)
              at com.liferay.document.library.web.internal.info.display.contributor.FileEntryInfoDisplayContributor.getInfoDisplayObjectClassPK(FileEntryInfoDisplayContributor.java:49)
              at com.liferay.info.internal.display.contributor.InfoDisplayContributorWrapper._convertToInfoForm(InfoDisplayContributorWrapper.java:280)
              at com.liferay.info.internal.display.contributor.InfoDisplayContributorWrapper.getInfoForm(InfoDisplayContributorWrapper.java:92)
              at com.liferay.info.item.provider.InfoItemFormProvider.getInfoForm(InfoItemFormProvider.java:51)
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: a9d1f04cef1fba5d813a42f568c8cb7492f655d6.

      Cannot be reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: 35ac9609a3f7c53f5f9be36b40e14f02f8ca0cf7.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Yang Cao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 weeks, 4 days ago

                  Packages

                  Version Package
                  Master