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

Matthew Swift
03.07.2014 0550522c1525631233e9f268792ac19813f21bb4
refs
author Matthew Swift <matthew.swift@forgerock.com>
Monday, March 3, 2014 19:07 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Monday, March 3, 2014 19:07 +0100
commit0550522c1525631233e9f268792ac19813f21bb4
tree 7666bad5d573b82641aed3645ab9f17c2a91e2d6 tree | zip | gz
parent e755a8ecb13752f63fd5c2f3e78d8edff0586d92 view | diff
Additional fix for OPENDJ-1361: Matching Rules and Syntaxes have a reference to a schema that can be changed, leading to unexpected behavior

* SchemaBuilder: use Reject for ensuring that matching rules and syntaxes have not already been validated when they are added to a schema builder
* Syntax: inherit matching rules from default syntax
* SyntaxTestCase: remove invalid testCreatesEmptySyntax() test, add two tests for default syntax substitution.
3 files modified
51 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 4 ●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Syntax.java 8 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/SyntaxTestCase.java 39 ●●●● diff | view | raw | blame | history