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

Fix Bulk Action operation in listener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Bulk
    • Tags:
    • Backlog priority:
      1,000
    • Sprint:
      nxcore 10.10.1
    • Story Points:
      5

      Description

      Steps to reproduce:

      • Create an event handler on Folderish documents triggered on the Document Modified event.
      • Create the following automation chain, to be launched when the event handler is fired:
        - Context.FetchDocument
        - Bulk.RunAction:
            action: setProperties
            query: expr:SELECT * FROM Document WHERE ecm:ancestorId = @{Document.id}
            parameters: expr:{"dc:description":"@{Document.description}"}
        

      Given a folder with thousands of documents in it:

      • Modify the description of the folder in Web UI.
        => When clicking Save on edit document dialog:
        • The document is not saved.
        • The edit document dialog remains open.
        • A document.saveError toast notification appears.
        • Errors appear in the server.log (see attached server.log for details).
      Caused by: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError)
      (through reference chain: org.nuxeo.ecm.core.api.model.impl.DocumentPartImpl["icon-expanded"]
      ->org.nuxeo.ecm.core.api.model.impl.primitives.StringProperty["parent"]
      ->org.nuxeo.ecm.core.api.model.impl.DocumentPartImpl["icon-expanded"]
      ->org.nuxeo.ecm.core.api.model.impl.primitives.StringProperty["parent"]
      ->org.nuxeo.ecm.core.api.model.impl.DocumentPartImpl["icon-expanded"]
      ->org.nuxeo.ecm.core.api.model.impl.primitives.StringProperty["parent"]
      etc.
      

        Attachments

        1. server.log
          439 kB
          Karin Touchie

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 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 - 4 hours
                  4h