-
Bug
-
Resolution: Fixed
-
High
-
9.4.5
-
1
-
Severity 3 - Minor
-
Issue Summary
REST endpoints to disable analytics or the analytics plugin is not supported for Mirror and returns HTTP 403 response code
Steps to Reproduce
- Execute REST Endpoint to disable analytics
curl "http://localhost:8990/mirror/rest/analytics/1.0/config/enable" \ -u "admin:admin" \ -X 'PUT' \ -H 'Content-Type: application/json' \ --data-raw '{"analyticsEnabled":false}'
- Endpoint to disable the analytics-client plugin
curl -v -X PUT \ -H 'Content-Type: application/vnd.atl.plugins.plugin+json' \ -u admin:admin \ http://localhost:8990/mirror/rest/plugins/1.0/com.atlassian.analytics.analytics-client-key \ -d '{"enabled": false}'
- Unfortunately both REST calls are not allowed in mirrors and get a 403 response with the following message.
{"errors":[\{"message":"This REST endpoint is disabled on mirrors"}]}
Expected Results
Rest endpoint should be able to disable the Analytics and Analytics plugin on Mirror node
Actual Results
Executing the endpoint returns following error message
{"errors":[\\{"message":"This REST endpoint is disabled on mirrors"}
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available