cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In 6.7 hybris cms cockpit When i am trying to add an existing component to content slots, i am not able to view the existing components list in the search.

Former Member
0 Likes
476

facing the below exception

ERROR [Thread-74] [AdvancedSearchView] Error executing search java.lang.IllegalArgumentException: Value is instanceof Collection but cannot be empty collection for key: contentSlots at de.hybris.platform.servicelayer.search.FlexibleSearchQuery.addQueryParameters(FlexibleSearchQuery.java:185) ~[coreserver.jar:?] at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:253) ~[coreserver.jar:?] at de.hybris.platform.servicelayer.internal.dao.AbstractItemDao.search(AbstractItemDao.java:68) ~[coreserver.jar:?] at de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageDao.findPagesByContentSlotsAndPageStatuses(DefaultCMSPageDao.java:542) ~[cms2server.jar:?] at de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageDao.findPagesByContentSlots(DefaultCMSPageDao.java:514) ~[cms2server.jar:?] at de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getPagesForComponent(DefaultCMSPageService.java:689) ~[cms2server.jar:?] at de.hybris.platform.cmscockpit.services.security.impl.CMSCockpitUIAccessRightService.isObjectWritable(CMSCockpitUIAccessRightService.java:89) ~[cmscockpitserver.jar:?]

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

We are facing the same issue. Looks like 6.7 code got updated for getPagesForComponent() in DefaultCMSPageService. There is no null check for slots in Dao, need to override this to perform the null check..

The issue is mainly because component doesn't assigned with any slot. If the component is assigned with the slot you can see editor as well as sync works.. Good luck !

Former Member
0 Likes

Hi, are there any updates on this issue? think with an upgrade from 6.5 -> 6.7.0.3 we are running into the same issue.

Pls. keep me updated With KR, Mario

Former Member
0 Likes

see also: https://jira.hybris.com/browse/ECP-2682 CMS cockpit : Error on looking through content editor on hy66

the related issue is set to won't fix and affects version: 6.6