-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.10-HF34, 10.10-HF10, 11.1, 2021.0
-
Component/s: Directory
-
Sprint:nxplatform 11.1.13
-
Story Points:2
NXP-27275 fixes a bug in directory service when using not String ids.
A test was introduced to assert behavior but is failing on MongoDB, see:
java.lang.AssertionError: expected:<1> but was:<2> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:645) at org.junit.Assert.assertEquals(Assert.java:631) at org.nuxeo.directory.test.TestIntIdField.testQueryBuilderOnIntId(TestIntIdField.java:95)
This seems to indicate that custom id field is not well taken into account for MongoDB as we're retrieving two results instead of one.
Note: the test creates only one entry, so there might also be a test cleanup issue too for MongoDB.