Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-28086

couchbase-cli: setting-audit broken because of UID

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.5.0
    • tools
    • None
    • Untriaged
    • Unknown

    Description

      Problem
      couchbase-cli setting-audit commands all fail because it sets the uid.

      ERROR: uid - Found unsupported key uid
      

      Steps to reproduce
      Run the followings setting on a configured cluster

      ./couchbase-cli setting-audit --audit-enabled 1 --audit-log-path /Users/patrick/tmp/cbaudit -c localhost:9000 -u Administrator -p asdasd  -d
      

      Logs

      GET http://localhost:9000/pools
      200 {"isAdminCreds":true,"isROAdminCreds":false,"isEnterprise":true,"isIPv6":false,"pools":[{"name":"default","uri":"/pools/default?uuid=7730261736ca44e4bddd1c3c7d20eddd","streamingUri":"/poolsStreaming/default?uuid=7730261736ca44e4bddd1c3c7d20eddd"}],"settings":{"maxParallelIndexers":"/settings/maxParallelIndexers?uuid=7730261736ca44e4bddd1c3c7d20eddd","viewUpdateDaemon":"/settings/viewUpdateDaemon?uuid=7730261736ca44e4bddd1c3c7d20eddd"},"uuid":"7730261736ca44e4bddd1c3c7d20eddd","implementationVersion":"0.0.0-0000-enterprise","componentsVersion":{"lhttpc":"1.3.0","os_mon":"2.2.14","public_key":"0.21","asn1":"2.0.4","kernel":"2.16.4","ale":"0.0.0-0000-enterprise","inets":"5.9.8","ns_server":"0.0.0-0000-enterprise","crypto":"3.2","ssl":"5.3.3","sasl":"2.3.4","stdlib":"1.19.4"}}
      GET http://localhost:9000/settings/audit
      200 {"disabled":[],"uid":"66810962","auditdEnabled":true,"disabledUsers":[],"rotateInterval":86400,"rotateSize":20971520}
      POST http://localhost:9000/settings/audit rotateInterval=86400&uid=66810962&rotateSize=20971520&logPath=%2FUsers%2Fpatrick%2Ftmp%2Fcbaudit&disabled=%5B%5D&auditdEnabled=true&disabledUsers=%5B%5D
      400 {"errors":{"uid":"Found unsupported key uid"}}
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              arunkumar Arunkumar Senthilnathan (Inactive)
              pvarley Patrick Varley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty