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

Referential Integrity plugin checks all modifications when run as preModifyOperation

    Details

    • Support Ticket IDs:
    • Sprint:
      OpenDJ Sprint 104

      Description

      MOD operations fail when a custom referential integrity plugin is enabled with filter checking. Note that this problem doesn't occur with the default plugin because it isn't configured as
      ds-cfg-plugin-type: preoperationmodify. A new plugin configuration created with dsconfig will include that plugin type.

      To reproduce:

      1. Create a new referential integrity plugin as follows:

      dn: cn=myRefInt,cn=Plugins,cn=config
      objectClass: ds-cfg-plugin
      objectClass: ds-cfg-referential-integrity-plugin
      objectClass: top
      ds-cfg-attribute-type: seealso
      ds-cfg-enabled: true
      ds-cfg-java-class: org.opends.server.plugins.ReferentialIntegrityPlugin
      cn: myRefInt
      ds-cfg-check-references-filter-criteria: seeAlso:(objectclass=inetorgperson)
      ds-cfg-check-references: true
      ds-cfg-plugin-type: postoperationdelete
      ds-cfg-plugin-type: postoperationmodifydn
      ds-cfg-plugin-type: preoperationadd
      ds-cfg-plugin-type: preoperationmodify
      ds-cfg-plugin-type: subordinatedelete
      ds-cfg-plugin-type: subordinatemodifydn
      

      2. Modify a user

      ldapmodify -p 1389 -D "cn=directory manager" -w password 
      dn: uid=user.1,ou=People,dc=example,dc=com
      changetype: modify
      replace: telephoneNumber
      telephoneNumber: 8881112222
      
      Processing MODIFY request for uid=user.1,ou=People,dc=example,dc=com
      MODIFY operation failed
      Result Code:  80 (Other)
      Additional Information:  The opration could not be processed due to an unexpected exception: 'The provided value "8881112222" could not be parsed as a valid distinguished name because it contained an RDN containing an empty attribute name'
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ludo Ludovic Poitou
                Reporter:
                neal.fisher Neal Fisher
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: