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

Asset Publisher throws NoSuchStructureException when configured to show Documents of any type and to filter by some of its fields

    Details

      Description

      Steps to reproduce

      1. create a document type dt
      2. add a field f1 of any kind to that type, then save
      3. add a new document doc1 of type dt
      4. add an Asset Publisher portlet to any page
      5. Configure the portlet as follows
        1. Select "Document" as the asset type
        2. Select "dt" as the document subtype
        3. Save
      6. Check that asset publisher shows doc1
      7. Configure the AP as follows
        1. in section "Ordering and Grouping", select "f1" as the value for "Order by" field.
        2. Save

      Expected behavior

      • Asset publisher shows doc1

      Observed behavior

      • Asset publisher does not show any document
      • An exception is shown in the log:
      15:53:09,200 ERROR [http-bio-9081-exec-181][IncludeTag:129] Current URL /asset?p_p_id=101_INSTANCE_UaRxv9oaqQJl&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1 generates exception: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the primary key 41039
      com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the primary key 41039
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByPrimaryKey(DDMStructurePersistenceImpl.java:9230)
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByPrimaryKey(DDMStructurePersistenceImpl.java:9248)
              at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.getStructure(DDMStructureLocalServiceImpl.java:727)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil.getStructure(DDMStructureLocalServiceUtil.java:944)
              at com.liferay.portlet.asset.util.AssetUtil.getSort(AssetUtil.java:692)
              at com.liferay.portlet.asset.util.AssetUtil.getSorts(AssetUtil.java:718)
              at com.liferay.portlet.asset.util.AssetUtil.search(AssetUtil.java:586)
              at com.liferay.portlet.asset.util.AssetUtil.search(AssetUtil.java:534)
              at org.apache.jsp.html.portlet.asset_005fpublisher.view_jsp._jspService(view_jsp.java:1998)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joseph.chin Joseph Chin (Inactive)
                Reporter:
                daniel.sanz Daniel Sanz
                Participants of an Issue:
                Recent user:
                Marta Elicegui
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 35 weeks ago

                  Packages

                  Version Package
                  6.2.0 CE RC4