Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-5686

Updating schema fails due to the order of attributeTypes and ObjectClasses in an LDIF file

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5.3, 3.0.0
    • Fix Version/s: 4.0.0
    • Component/s: core server
    • Labels:
    • Epic Link:
    • Story Points:
      0.5
    • Support Ticket IDs:

      Description

      When creating an LDIF file using ldif-diff to compare 99-user.ldif files then using the output file to update schema using ldapmodify the following error occurs:

      Processing MODIFY request for cn=schema MODIFY operation failed Result Code: 21 (Invalid Attribute Syntax)

      Additional Information: An error occurred while attempting to decode the object class "( examplePerson-oid NAME 'examplePerson' DESC 'Example person' SUP top AUXILIARY MAY ( exampleAttr1 ) )": The definition for the objectclass with OID examplePerson-oid declared that it should include optional attribute "exampleAttr". No attribute type matching this name or OID exists in the server schema

      When adding attributeTypes and objectClasses attributes, the attributeTypes must exist before adding the objectClasses that reference them. When deleting schema attributes this is reversed, the objectClasses attribute must be deleted before the attributeTypes that are referenced in the objectClasses attribute.

      The server should only check for consistent “linkage” between attributes and objectclasses after making all the changes, before committing them.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                julie.evans Julie Evans
                Dev Assignee:
                Matthew Swift
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: