-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 11.4
-
Fix Version/s: None
-
Component/s: Core MongoDB
In module nuxeo-core-storage-mongodb, tests are currently skipped in maven configuration.
With commits for NXP-29984, tests have been re-enabled but 3 tests in TestGridFSBinaryManager are not passing (and testBinaryManagerGC holds as a javadoc "NOTE THAT THIS TEST WILL REMOVE ALL FILES IN THE BUCKET!!!")
Stack traces:
Run unit tests / Run mongodb unit tests / org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testSerialization
java.lang.NullPointerException at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getDigestAlgorithm(AbstractBinaryManager.java:221) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.storeAndDigest(AbstractBinaryManager.java:170) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:214) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getBinary(AbstractBinaryManager.java:130) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:190) at org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testSerialization(TestGridFSBinaryManager.java:116)
Run unit tests / Run mongodb unit tests / org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testStoreFile
java.lang.NullPointerException at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getDigestAlgorithm(AbstractBinaryManager.java:221) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.storeAndDigest(AbstractBinaryManager.java:170) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:214) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getBinary(AbstractBinaryManager.java:130) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:190) at org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testStoreFile(TestGridFSBinaryManager.java:134)
Run unit tests / Run mongodb unit tests / org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testBinaryManagerGC
java.lang.NullPointerException at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getDigestAlgorithm(AbstractBinaryManager.java:221) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.storeAndDigest(AbstractBinaryManager.java:170) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:214) at org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager.getBinary(AbstractBinaryManager.java:130) at org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.getBinary(GridFSBinaryManager.java:190) at org.nuxeo.ecm.core.storage.mongodb.TestGridFSBinaryManager.testBinaryManagerGC(TestGridFSBinaryManager.java:161)
The field descriptor is indeed null and protected method setDescriptor is never called in the GridFSBinaryManager implementation.
-> will add an ignore test annotation with a reference to this NXP issue.
- Is referenced in