-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.0 CE RC4
-
Fix Version/s: 6.2.0 CE RC4
-
Component/s: Content Display Widgets > Asset Publisher widget
-
Labels:
-
Git Pull Request:
Steps to reproduce
- create a document type dt
- add a field f1 of any kind to that type, then save
- add a new document doc1 of type dt
- add an Asset Publisher portlet to any page
- Configure the portlet as follows
- Select "Document" as the asset type
- Select "dt" as the document subtype
- Save
- Check that asset publisher shows doc1
- Configure the AP as follows
- in section "Ordering and Grouping", select "f1" as the value for "Order by" field.
- 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)
- Testing discovered
-
LPS-40779 Asset Publisher does not filter by integer field type value
- Closed