Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-20081

Rest endpoint to disable Analytics or Analytics plugin is not supported for Mirror nodes

XMLWordPrintable

      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

              74d6667aa35c Josh Aguilar
              57730852f533 Jaya Mantri
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: