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

Fix search form: not specifying an entry for a list of integers results in exception when Exporting to Excel

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The Excel export works even with empty list of integers
    • Backlog priority:
      300
    • Sprint:
      nxcore 9.3.10, nxcore 9.10.1
    • Story Points:
      2

      Description

      Define a search form which contains as a search filter a list of integers.
      If you do not define any value in the filter, the following exception is thrown:

      Caused by: java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to java.lang.String
      	at org.nuxeo.ecm.core.schema.types.primitives.LongType.convert(LongType.java:59)
      	at org.nuxeo.ecm.core.api.model.impl.ArrayProperty.convert(ArrayProperty.java:124)
      	at org.nuxeo.ecm.core.api.model.impl.ArrayProperty.normalize(ArrayProperty.java:111)
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.setValue(AbstractProperty.java:311)
      	at org.nuxeo.ecm.core.api.model.impl.ArrayProperty.setValue(ArrayProperty.java:71)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setPropertyValue(DocumentModelImpl.java:1451)
      	at org.nuxeo.ecm.platform.contentview.json.JSONContentViewState.getDocumentModelFromJSON(JSONContentViewState.java:253)
      	at org.nuxeo.ecm.platform.contentview.json.JSONContentViewState.fromJSON(JSONContentViewState.java:188)
      	at org.nuxeo.ecm.platform.contentview.seam.ContentViewRestActions.restoreContentView(ContentViewRestActions.java:64)
      

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.