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

Cannot delete access log publisher when it is disabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 6.0.0
    • Component/s: logging
    • Environment:
      OpenDJ-4.0.0 rev 8dd4c87972373e0eb1c074905819ae51187f98ad
    • Support Ticket IDs:
    • Sprint:
      OpenDJ Sprint 112

      Description

      Scenario
      I noticed that delete of external access log publisher cause "Unwilling to perform" error, in case this publisher is disabled and only when it is disabled.

      Steps:
      I configured new publisher with following command:

      ./dsconfig -h pyforge.example.com -p 4444 -D "cn=myself" -w password -X create-log-publisher --publisher-name "JdbcLDAPExample" --type external-access --set enabled:false --set config-file:jdb_config.json
      

      I disabled the publihser with following command:

      ./dsconfig -h pyforge.example.com -p 4444 -D "cn=myself" -w password -X set-log-publisher-prop --publisher-name "JdbcLDAPExample" --set enabled:false -n
      

      and tried to delete it with following command:

      ./dsconfig -h pyforge.example.com -p 4444 -D "cn=myself" -w password -X delete-log-publisher --publisher-name "JdbcLDAPExample" -n
      

      Current behavior
      The Log Publisher could not be deleted because of the following reason:

          *  Unwilling to Perform: Entry dn:
             cn=JdbcLDAPExample,cn=Loggers,cn=config
      objectClass:
             ds-cfg-external-access-log-publisher
      objectClass: top
      objectClass:
             ds-cfg-log-publisher
      objectClass:
             ds-cfg-access-log-publisher
      ds-cfg-config-file:
             /home/ondrej/DATA/repositories/pyforge-dev/results/20161024-171901/loggi
             ng_group/DJ1/opendj/config/jdbc_handler.json
      cn:
             JdbcLDAPExample
      ds-cfg-java-class:
             org.opends.server.loggers.ExternalAccessLogPublisher
      creatorsName:
             cn=Directory Manager,cn=Root DNs,cn=config
      entryUUID:
             61a27d77-c4ac-4837-85ce-a9e719308797
      createTimestamp:
             20161024152027Z
      modifiersName: cn=Directory Manager,cn=Root
             DNs,cn=config
      ds-cfg-enabled: false
      modifyTimestamp: 20161024152034Z
      
      
             cannot be removed from the Directory Server configuration because one of
             the delete listeners registered with the parent entry
             cn=Loggers,cn=config rejected this change with the message:
      

      Note: The message is not trimered by me and really ends with "with the message:".

      Expected behavior
      Correctly removed log publisher. It should not be dependent on fact the publisher is enabled or disabled.

      The issue with delete of log publisher doesn't appear if the publisher is enabled.
      I tried this above scenario with JDBC, JMS, Splunk configured external log publishers, so it looks like issue of external publishers.

        Attachments

          Activity

            People

            • Assignee:
              cyril.quinton Cyril Quinton
              Reporter:
              ondrej.fuchsik Ondrej Fuchsik
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: