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

LogEntryJsonWriter doesn't handle complex in ExtendedInfo

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 9.3, 10.3
    • Fix Version/s: 9.10-HF26, 10.10
    • Component/s: Audit, Streams
    • Backlog priority:
      700
    • Impact type:
      Data Persistence Change
    • Upgrade notes:
      Hide

      Complex types in ExtendedInfo in LogEntry are now serialized correctly.

      This is a breaking change because we used to serialize them as their String representation and we now serialize them as JSON object.

      For instance, we changed:

      { 
        "extended": {
          "array": "[123,456]",
          "map": "{key1=value1,key2=value2}"
        }
      }

      to:

      { 
       "extended": {
         "array": [123, 456],
         "map": {
           "key1": "value1",
           "key2": "value2"
          }
        }
      } 

       

      Show
      Complex types in ExtendedInfo in LogEntry are now serialized correctly. This is a breaking change because we used to serialize them as their String representation and we now serialize them as JSON object. For instance, we changed: { "extended" : { "array" : "[123,456]" , "map" : "{key1=value1,key2=value2}" } } to: { "extended" : { "array" : [123, 456], "map" : { "key1" : "value1" , "key2" : "value2" } } }  
    • Sprint:
      nxcore 10.10.5, nxcore 11.1.1
    • Story Points:
      1

      Description

      Improve LogEntryJsonWriter in order to handle complex types (array, list, map) in ExtendedInfo.

      This is a bug because audit with stream uses this serialization which leads to the loss of this kind of data.

      Such data could be page provider params.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.