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

Jean-Noël Rouvignac
02.37.2016 a9f305153b30d5cb478c561467803512e90f3ba6
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 2, 2016 09:37 +0100
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, February 3, 2016 12:57 +0100
commita9f305153b30d5cb478c561467803512e90f3ba6
tree 19972fa9b46b80e770d6a044e6fd40ca00b6b8eb tree | zip | gz
parent 9d37eff04e2be94b116fd439678b3bca13be2e90 view | diff
OPENDJ-2647 Schema problems in control-panel

The problem was due to an incremntal update of the SDK schema.
The problem does not appear when the SDK schema is updated in bulk and then built in one go.

SchemaLoader.java:
In getBaseSchema(), use a SchemaBuilder and create the server's schema with a newly built SDK schema.

Schema.java:
In the constructor, validate that the SDK schema has no warnings and throw a DirectoryException if it is has warnings.
This is more consistent with the rest of this class.

SchemaConfigManager.java, DirectoryServer.java:
Handled the newly thrown DirectoryException
5 files modified
177 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/SchemaLoader.java 48 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/DirectoryServer.java 18 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/SchemaConfigManager.java 32 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/Schema.java 25 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/schema/LDAPSyntaxTest.java 54 ●●●●● diff | view | raw | blame | history