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

status tool will fail if parts of the config contain expressions

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.5.0, 6.0.0, 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: tools
    • Labels:

      Description

      The status tool will fail if one of the following config attributes contain expressions:
      root config:
      ds-cfg-server-id

      Connection handlers:
      ds-cfg-enabled
      ds-cfg-listen-port
      ds-cfg-use-ssl
      ds-cfg-allow-start-tls

      Multimaster Synchronization:
      ds-cfg-enabled
      ds-cfg-ssl-encryption

      Replication Server:
      ds-cfg-replication-port

      Backends:
      ds-cfg-enabled
      ds-cfg-backend-id
      ds-cfg-base-dn

      Reproduce case:

      Use an expression for any of the config attributes listed above, here is an example with ds-cfg-use-ssl:

      • Change one of the listed attribute value to an expression with dsconfig offline:
        $ export SSL_ENABLED=false
        $ dsconfig set-connection-handler-prop \
                  --handler-name LDAP \
                  --set use-ssl:\&{ssl.enabled} \
                  --offline \
                  --configFile /Users/cyril/deploy/opendj/config/config.ldif \
                  --no-prompt
        
      • Try the status tool offline and online
        $ ./opendj/bin/status --offline
        An error occurred while reading the server configuration: Property is provided
        as an expression '&{ssl.enabled}', it can't be read as a value
        
        $ ./opendj/bin/start-ds
        
        $ ./opendj/bin/status -h localhost -p 4444 -w password -D uid=admin -X
        Other: Property is provided as an expression '&{ssl.enabled}', it can't be
        read as a value
        

        Attachments

          Activity

            People

            • Assignee:
              michal.severin Michal Severin
              Reporter:
              cyril.quinton Cyril Quinton
              Dev Assignee:
              Cyril Quinton
              QA Assignee:
              Michal Severin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: