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

Blob.AttachOnDocument doesn't handle correctly list of blobs

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Blob.AttachOnDocument works with a list of blobs.
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #82
    • Story Points:
      3

      Description

      While working on JAVACLIENT-179 we've notice that Blob.AttachOnDocument (for exmaple, can happen for other operations) doesn't handle correctly a list of blobs in a specific context.

      The first thing we observed is that the operation is saving the document after adding each blobs, which could be a performance issue and which triggers too many documentUpdated events.

      The second is that only the first blob of the list is saved when the full document is given as context param, like for example:

                      {
                        "params": {
                          "document": {
                            "entity-type": "document",
                            "uid": SOME_UID",
                            "properties": {
                              "files:files": []
                            }
                          },
                          "xpath": "files:files"
                        }
                      }
      

      We would like to fix the second point and optimize the first one.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: