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

Matthew Swift
03.07.2014 66176e1b260cc9c4b4ec09add01d568482788e1a
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
commit66176e1b260cc9c4b4ec09add01d568482788e1a
tree 1441dfb9066ec04d21665b5331ed649493cf4dd0 tree | zip | gz
parent 9830326fed02f83943b723a5477ba799aef2eded 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-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 4 ●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Syntax.java 8 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/SyntaxTestCase.java 39 ●●●● diff | view | raw | blame | history