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

Fix Document.RemoveItemFromListProperty throwing ClassCastException

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The operation Document.RemoveItemFromListProperty correctly removes an entry from an Array property.
    • Tags:
    • Backlog priority:
      550
    • Sprint:
      nxfit 11.1.5, nxfit 11.1.6
    • Story Points:
      3

      Description

      Invoking Document.RemoveItemFromListProperty on a multi-valued string property throws:

      Caused by: java.lang.ClassCastException: org.nuxeo.ecm.core.api.model.impl.ArrayProperty cannot be cast to org.nuxeo.ecm.core.api.model.impl.ListProperty
          at org.nuxeo.ecm.automation.core.operations.document.RemoveItemFromListProperty.run(RemoveItemFromListProperty.java:94)
      

      Requesting to fix the operation so that the ClassCastException does not occur.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 3 hours, 50 minutes
                3h 50m