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

View items view is broken for custom Collection provider

    Details

      Description

      Even though we don't have a InfoItemFieldValuesProvider we shouldn't crash. We are using the field "title" but this field may not exists so in that case we should generate some name 

      Steps to reproduce

      1. Checkout this pr: https://github.com/JorgeFerrer/liferay-portal/pull/902
      2. Remove this condition: https://github.com/liferay/liferay-portal/blob/2a48475f14cf5934e53f4a006881afe10be52f0c/modules/apps/object/object-service/src/main/java/com/liferay/object/internal/ObjectDefinitionSampleGenerator.java#L52
      3. Deploy modules object-service and object-web
      4. Go to Site builder -> Collections
      5. Go to Collection providers
      6. in the "objects" collection click view items.

      Expected result

      A list of items is displayed. 

      Actual result

      Null pointer is thrown and the message "Collections is temporarily unavailable" is displayed

      NOTE: This happens because the pr doesn't have a implementation of the InfoItemFieldValuesProvider, which shouldn't be needed in this case since we have an infoListProvider

        Attachments

          Activity

            People

            Assignee:
            team-echo Product Team Echo
            Reporter:
            victor.galan Victor Galan
            Participants of an Issue:
            Recent user:
            Tomáš Polešovský
            Engineering Assignee:
            Eudaldo Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.4.2 CE GA3 DXP 7,4
                Master