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

Fix creation of document via REST API when providing string value to integer property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021.0
    • Fix Version/s: 10.10-HF57, 2021.14
    • Component/s: Rest API
    • Release Notes Summary:
      An error is thrown if a value does not correspond to the property type at creation with a REST API call.
    • Backlog priority:
      800
    • Sprint:
      nxplatform #51
    • Story Points:
      3

      Description

      When providing a string as a value to an integer property when creating/modifying a document, its value is set to integer value 0.

      How to reproduce:

      • in Studio Modeler, define a document type with an integer property
      • deploy
      • create a document using the type above and provide a string value for the integer property via the Nuxeo REST API

      Expected result: the REST call should probably return an error
      Actual result: the document is created with the integer value 0 for the integer property

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: