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

[AUDITING] Rest call to change audit settings returns nothing upon success

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 5.5.0
    • 5.5.0
    • ns_server
    • 5.5.0-2036
    • Untriaged
    • Unknown

    Description

      I am not sure if this is a bug, but it seems weird. When you issue a rest call to change auditing settings, upon success you get nothing returned. Normally a change of settings would return the list of settings and their new values. When you do a call that tries invalid settings an error is properly thrown.

      Success:

      couchbases-MacBook-Pro:~ ajay.bhullar$ curl -u Administrator:password -X POST -d 'auditdEnabled=true;disabled=28672,28673' http://192.168.10.12:8091/settings/audit

      couchbases-MacBook-Pro:~ ajay.bhullar$

       

      Error(works as expected):

      couchbases-MacBook-Pro:~ ajay.bhullar$ curl -u Administrator:password -X POST -d 'auditdEnabled=true;disabled=28672,28673asd' http://192.168.10.12:8091/settings/audit

      {"errors":{"disabled":"All event id's must be integers"}}couchbases-MacBook-Pro:~ ajay.bhullar$

      Attachments

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

        Activity

          People

            ajit.yagaty Ajit Yagaty [X] (Inactive)
            ajay.bhullar Ajay Bhullar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty