Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27696

Fix "Save as" on a modified saved search

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Web UI

      Description

      Steps to reproduce:

      1. Select a Previously Saved Search from the drop down
      2. Add additional filters/search criteria
      3. Click "Save As"
      4. Enter a new name and hit "Save"
      5. Observe that nothing happens: the popup is still displayed

      Expected Behavior: a new saved search would be created and the popup is closed.

       

      Looking at the Browser console, there is a HTTP 500 error

      Looking at Nuxeo logs, there is this stacktrace

       ERROR [WebEngineExceptionMapper] java.lang.ClassCastException: org.nuxeo.ecm.core.schema.types.SimpleTypeImpl cannot be cast to org.nuxeo.ecm.core.schema.types.ComplexType
      java.lang.ClassCastException: org.nuxeo.ecm.core.schema.types.SimpleTypeImpl cannot be cast to org.nuxeo.ecm.core.schema.types.ComplexType
      	at org.nuxeo.ecm.automation.core.util.ComplexTypeJSONDecoder.decodeList(ComplexTypeJSONDecoder.java:80) ~[nuxeo-automation-core-10.10-HF08.jar:?]
      	at org.nuxeo.ecm.automation.core.util.ComplexTypeJSONDecoder.decodeList(ComplexTypeJSONDecoder.java:69) ~[nuxeo-automation-core-10.10-HF08.jar:?]
      	at org.nuxeo.ecm.automation.core.util.DocumentHelper.setProperty(DocumentHelper.java:295) ~[nuxeo-automation-core-10.10-HF08.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.search.SearchObject.setSaveSearchParams(SearchObject.java:263) ~[nuxeo-search-rest-api-10.10.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.search.SearchObject.doSaveSearch(SearchObject.java:179) ~[nuxeo-search-rest-api-10.10.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m