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

Updating schema backend properties while it is enabled leaves schema backend in broken state

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0, 3.5.1, 3.5.0
    • Fix Version/s: 6.5.0
    • Component/s: backends
    • Labels:
    • Support Ticket IDs:

      Description

      This looks like a new problem in 3.5.0+

      To reproduce:

      ./setup --ldapPort 1389 -S --adminConnectorPort 14444 -w password -h opendj.example.com --acceptLicense -n
      ./dsconfig -p 14444 --trustAll -w password -D "cn=Directory Manager" -h opendj.example.com -n set-backend-prop --backend-name schema --set show-all-attributes:true
      ./ldapsearch -p 1389 -b "cn=schema" -s base "&" 1.1
      

      Result:

      SEARCH operation failed
      Result Code:  32 (No Such Entry)
      Additional Information:  Unable to retrieve the requested entry cn=schema from the schema backend because the DN is equal to one of the schema entry DNs
      

      Expected result:
      The cn=schema base entry is returned.

      Restarting the server after changing the properties will fix the problem. Another workaround is to use this sequence of commands to change properties (manually taking the backend offline).

      ./dsconfig -p 14444 --trustAll -w password -D "cn=Directory Manager" -h opendj.example.com -n set-backend-prop --backend-name schema --set enabled:false --set show-all-attributes:true
      ./dsconfig -p 14444 --trustAll -w password -D "cn=Directory Manager" -h opendj.example.com -n set-backend-prop --backend-name schema --set enabled:true
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ian.packer Ian Packer [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: