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

Allow to serialize complex object in audit extended info field

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.3
    • Fix Version/s: 7.4
    • Component/s: Audit, Elasticsearch

      Description

      Currently, we are only able to add String object in a flat json map for extended audit info.

      But in order to fully elasticsearch capabilities, we need to be able to serialize complex object.

      For instance:

      {
          "_id": "3174", 
          "_index": "audit", 
          "_score": 1, 
          "_source": {
              "category": "Routing", 
              "comment": null, 
              "docLifeCycle": "opened", 
              "docPath": "/task-root/Task328d", 
              "docType": "RoutingTask", 
              "docUUID": "e27b74a2-beb4-4b6e-b1de-35408743929f", 
              "entity-type": "logEntry", 
              "eventDate": "2015-08-06T17:09:35.843+02:00", 
              "eventId": "afterRouteTaskCreated", 
              "extended": {
                  "actors": [
                      "user:Administrator"
                  ], 
                  "modelId": "a4e93ae2-65c3-48a8-9985-cd32aa25f1d4", 
                  "modelName": "ParallelDocumentReview", 
                  "taskName": "wf.parallelDocumentReview.give_opinion.title", 
                  "user": "Administrator"
              }, 
              "id": 3174, 
              "logDate": "2015-08-06T17:09:35.947+02:00", 
              "principalName": "Administrator", 
              "repositoryId": "default"
          }, 
          "_type": "entry", 
          "_version": 1
      }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: