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

          umang.agrawal Umang created issue -
          till Till Westmann made changes -
          Field Original Value New Value
          Assignee Till Westmann [ till ] Umang [ JIRAUSER24787 ]
          umang.agrawal Umang made changes -
          Link to Log File, atop/blg, CBCollectInfo, Core dump https://cb-jira.s3.us-east-2.amazonaws.com/logs/MB-40294/internal_error.zip
          murtadha.hubail Murtadha Hubail made changes -
          Assignee Umang [ JIRAUSER24787 ] Murtadha Hubail [ murtadha.hubail ]
          murtadha.hubail Murtadha Hubail made changes -
          Sprint CX Sprint 206 [ 1138 ]
          murtadha.hubail Murtadha Hubail made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          till Till Westmann made changes -
          Labels analytics analytics triaged
          till Till Westmann made changes -
          Due Date 08/Jul/20
          till Till Westmann made changes -
          Link This issue blocks MB-38724 [ MB-38724 ]
          till Till Westmann made changes -
          Labels analytics triaged analytics approved-for-6.6.0 triaged
          murtadha.hubail Murtadha Hubail made changes -
          Assignee Murtadha Hubail [ murtadha.hubail ] Umang [ JIRAUSER24787 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          umang.agrawal Umang made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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