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

Fix nullifying a multi-valued complex property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF18
    • Fix Version/s: 10.10-HF21, 11.1, 2021.0
    • Component/s: Rest API
    • Release Notes Summary:
      Multi-valued complex property are correctly nullified by a REST call.
    • Backlog priority:
      750
    • Sprint:
      nxplatform 11.1.26
    • Story Points:
      3

      Description

      Pre-requisites: define a new document type with a multi-valued complex property

      Steps to reproduce:

      1. Create a documentof the previous type and set the Multi-valued field with at least 1 value
      2. Edit the File document
      3. Remove all values from the multivalued complex field
      4. Save
      5. Observe that the multivalued complex has still the same value(s)

      Expected behavior:

      The multivalued complex field should be empty after removing the value.

      Example of PUT request which fails:

      PUT https://nightly.nuxeo.com/nuxeo/api/v1/id/403e037c-f595-4369-ab80-5a0d70ceaea0
      
      {
        "entity-type": "document",
        "uid": "403e037c-f595-4369-ab80-5a0d70ceaea0",
        "properties": {
          "multidoc:comp": []
        }
      }
      

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 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 - 6 hours
                  6h