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

Make GetChangeSummary work with mongodb-audit

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The query used by Drive to get change summary is now compatible with MongoDB.
    • Backlog priority:
      900
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #13, nxplatform #14, nxplatform #15, nxplatform #16
    • Story Points:
      3

      Description

      Using Drive on an instance that uses mongodb-audit doesn't work. The GetChangeSummary operation has a failure that looks like:

      Caused by: org.bson.json.JsonParseException: JSON reader was expecting a value but found 'from'.
      	at org.bson.json.JsonReader.readBsonType(JsonReader.java:251) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:680) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:722) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.AbstractBsonReader.readStartDocument(AbstractBsonReader.java:450) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:148) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:45) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.Document.parse(Document.java:105) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.bson.Document.parse(Document.java:90) ~[mongo-java-driver-3.8.1.jar:?]
      	at org.nuxeo.mongodb.audit.MongoDBAuditBackend.buildFilter(MongoDBAuditBackend.java:268) ~[nuxeo-platform-audit-mongodb-10.10-HF17.jar:?]
      	at org.nuxeo.mongodb.audit.MongoDBAuditBackend.nativeQuery(MongoDBAuditBackend.java:258) ~[nuxeo-platform-audit-mongodb-10.10-HF17.jar:?]
      	at org.nuxeo.drive.service.impl.AuditChangeFinder.getUpperBound(AuditChangeFinder.java:246) ~[nuxeo-drive-core-10.10-HF21.jar:?]
      	at org.nuxeo.drive.service.impl.NuxeoDriveManagerImpl.getChangeSummary(NuxeoDriveManagerImpl.java:340) ~[nuxeo-drive-core-10.10-HF21.jar:?]
      	at org.nuxeo.drive.operations.NuxeoDriveGetChangeSummary.run(NuxeoDriveGetChangeSummary.java:74) ~[nuxeo-drive-operations-10.10.jar:?]
      

      AuditChangeFinder.getUpperBound needs refactoring to send usable parameters to MongoDBAuditBackend.

        Attachments

        1. server.log
          117 kB
        2. nuxeo.conf
          11 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 3 weeks, 4 days
                3w 4d