-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF32, 11.3, 2021.0
-
Component/s: Audit, Core MongoDB, Nuxeo Drive
-
Release Notes Summary:The query used by Drive to get change summary is now compatible with MongoDB.
-
Tags:
-
Backlog priority:900
-
Team:PLATFORM
-
Sprint:nxplatform #13, nxplatform #14, nxplatform #15, nxplatform #16
-
Story Points:3
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.
- Is referenced in
(2 Is referenced in)