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

Nicolas Capponi
03.07.2014 913b667eea9bd50510728baf4c6645b5f70687d3
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, March 3, 2014 17:07 +0100
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, March 3, 2014 17:07 +0100
commit913b667eea9bd50510728baf4c6645b5f70687d3
tree 598ceea19258398d9113bb7bcb12c6636d377576 tree | zip | gz
parent e003b4333d38d5a1254d020425fda6f62465e3d0 view | diff
Fix OPENDJ-1361 : Matching Rules and Syntaxes have a reference to a schema 
that can be changed, leading to unexpected behavior

* Duplicate syntaxes and matching rules when they are taken from
another schema
* Add new methods buildSyntax() and buildMatchingRule() to allow addition
without lazy initialization
* Add new method isValidated() to check if a syntax or a matching rule
has been validated
* Remove workarounds from unit tests
6 files modified
86 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/MatchingRule.java 10 ●●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 50 ●●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Syntax.java 10 ●●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/CertificateExactMatchingRuleImplTest.java 3 ●●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/DistinguishedNameEqualityMatchingRuleTest.java 10 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/MatchingRuleTest.java 3 ●●●●● diff | view | raw | blame | history