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

Unexpected error while updating schema to a replicated server after a restart.

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: core server
    • Labels:

      Description

      Found using OpenDJ 4.0.0 RC4 (75ee4635651)

      Scenario

      • install 2 servers and enable replication
      • unconfigure replication for suffix cn=schema
        $ DJ1/opendj/bin/dsreplication unconfigure -b cn=schema -I admin -w password  -X -n
        
      • add a new objectclass and new attribute on first instance
        $ DJ1/opendj/bin/ldapmodify -h openam.example.com -p 1389 -D "cn=myself" -w password 	
        dn: cn=schema
        changetype:modify
        add: attributeTypes
        attributeTypes: ( testattribute1-oid NAME 'testattribute-1' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
        -
        add: objectClasses
        objectClasses: ( testobjectclass1-oid NAME 'testobjectclass-1' SUP person MAY ( street $ testattribute-1 $ c ) X-ORIGIN 'user defined' )	
        
        ERROR:
        -- rc --
        returned 65, expected 0
        -- stdout --
        # Processing MODIFY request for cn=schema
        # The LDAP modify request failed: 65 (Object Class Violation)
        # Additional Information:  Entry cn=schema cannot be modified because the resulting entry would have violated the server schema: Entry cn=schema violates the Directory Server schema configuration because it includes attribute ds-sync-generation-id which is not allowed by any of the objectclasses defined in that entry
        

      => we expected this command to work

        Attachments

          Activity

            People

            • Assignee:
              nicolas.capponi@forgerock.com Nicolas Capponi
              Reporter:
              csovant Christophe Sovant
              QA Assignee:
              Ondrej Fuchsik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: