Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9156

FilteredContents does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.2.0
    • None
    • None
    • 4.2 M2

      1. Create a FilteredContents service with one context with a search context configured as DIRECT_CHILD_PAGES_OF with a selected page
      2. A display error occurs
      Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
      	at org.ametys.web.repository.page.actions.SetFilterInRequestAttributesAction._setSearchContext(SetFilterInRequestAttributesAction.java:581)
      	at org.ametys.web.repository.page.actions.SetFilterInRequestAttributesAction._getFilterFromParams(SetFilterInRequestAttributesAction.java:208)
      	at org.ametys.web.repository.page.actions.SetFilterInRequestAttributesAction.act(SetFilterInRequestAttributesAction.java:142)
      

      Indeed, the page is now stored as an array and not as a string. See attached issue

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: