mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
02.39.2016 251f9586274ce5f121b0bb596fbb21e1ecd39442
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, September 2, 2016 15:39 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, September 9, 2016 14:52 +0200
commit251f9586274ce5f121b0bb596fbb21e1ecd39442
tree 5f3f52f3d8247a8eb6c6784dddd76b10863820bc tree | zip | gz
parent 37736fa7a425638881423c927939e983bffa6051 view | diff
OPENDJ-3281 Modify operations may not be replayed if case is mixed on attribute values

Regression introduced in OPENDJ-1368, when AttributeValue class was removed
and replaced by plain ByteString.

Historical values are wrongly compared for equality by using ByteString.equals(),
while they should take use the attribute type's equality matching rule for determining equality.

AttrValueHistorical.java:
Added attributeType field used in equals() and hashCode().

AttrHistoricalMultipleTest.java:
Fixed the unit test that reproduces the bug.

ValueInfoTest.java: RENAMED to AttrValueHistoricalTest.java
7 files modified
1 files renamed
247 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistorical.java 11 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalMultiple.java 47 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java 27 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrValueHistorical.java 41 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java 2 ●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java 53 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalSingleTest.java 10 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrValueHistoricalTest.java 56 ●●●●● diff | view | raw | blame | history