-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 8.10
-
Component/s: Content Views, Search Tab
-
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
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)