| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.forgerock.opendj.ldap.schema.MatchingRule; |
| | | import org.forgerock.opendj.ldap.schema.NameForm; |
| | | import org.forgerock.opendj.ldap.schema.ObjectClass; |
| | | import org.forgerock.opendj.ldap.schema.Syntax; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | import org.opends.server.types.LDIFImportConfig; |
| | | import org.forgerock.opendj.ldap.schema.Schema; |
| | | import org.opends.server.util.LDIFReader; |
| | | import org.opends.server.util.SchemaUtils; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | { |
| | | for (ByteString v : a) |
| | | { |
| | | AttributeType at = DirectoryServer.getSchema().parseAttributeType(v.toString()); |
| | | if (! isNumericOID(at.getOID())) |
| | | String oid = SchemaUtils.parseAttributeTypeOID(v.toString()); |
| | | if (! isNumericOID(oid)) |
| | | { |
| | | invalidOIDs.add(at.getNameOrOID()); |
| | | invalidOIDs.add(oid); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | for (ByteString v : a) |
| | | { |
| | | ObjectClass oc = DirectoryServer.getSchema().parseObjectClass(v.toString()); |
| | | if (! isNumericOID(oc.getOID())) |
| | | String oid = SchemaUtils.parseObjectClassOID(v.toString()); |
| | | if (! isNumericOID(oid)) |
| | | { |
| | | invalidOIDs.add(oc.getNameOrOID()); |
| | | invalidOIDs.add(oid); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | for (ByteString v : a) |
| | | { |
| | | NameForm nf = DirectoryServer.getSchema().parseNameForm(v.toString()); |
| | | if (! isNumericOID(nf.getOID())) |
| | | String oid = SchemaUtils.parseNameFormOID(v.toString()); |
| | | if (! isNumericOID(oid)) |
| | | { |
| | | invalidOIDs.add(nf.getNameOrOID()); |
| | | invalidOIDs.add(oid); |
| | | } |
| | | } |
| | | } |