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

Unauthorised user access to /analytics/service API is throwing internal server error

    XMLWordPrintable

    Details

      Description

      curl -v http://10.112.200.104:8095/analytics/service -u data_dcp_reader
      Enter host password for user 'data_dcp_reader':
      *   Trying 10.112.200.104...
      * TCP_NODELAY set
      * Connected to 10.112.200.104 (10.112.200.104) port 8095 (#0)
      * Server auth using Basic with user 'data_dcp_reader'
      > GET /analytics/service HTTP/1.1
      > Host: 10.112.200.104:8095
      > Authorization: Basic ZGF0YV9kY3BfcmVhZGVyOnBhc3N3b3Jk
      > User-Agent: curl/7.64.1
      > Accept: */*
      > 
      < HTTP/1.1 500 Internal Server Error
      < connection: keep-alive
      < content-type: application/json; charset=UTF-8
      < content-length: 291
      < 
      {
      	"errors": [{ 
      		"code": 20001,		"msg": "User must have permission (cluster.bucket[.].analytics!select)"	} 
      	],
      	"status": "fatal",
      	"metrics": {
      		"elapsedTime": "3.25096ms",
      		"executionTime": "0ns",
      		"resultCount": 0,
      		"resultSize": 0,
      		"processedObjects": 0,
      		"errorCount": 1
      	}
      }

        Attachments

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

          Activity

          No work has yet been logged on this issue.

            People

            Assignee:
            umang.agrawal Umang
            Reporter:
            umang.agrawal Umang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty