ministryofjustice / analytics-platform

Parent repository for the MOJ Analytics Platform
MIT License
14 stars 1 forks source link

Control Panel: Deleting warehouse data bucket gives 403 error #111

Closed calumabarnett closed 5 years ago

calumabarnett commented 5 years ago

What happened?

Deleting a warehouse data source results in a '403 Forbidden' error.

@joeprinold reported:

Seems to behave strangely. Get a 403 Forbidden error, but then it did seem to have been deleted, although on another attempt it didn't seem to get deleted although it disappeared from my list of warehouse data sources.

@mhwauben reported:

When I try, I get 403 Forbidden, but the data source does get deleted.

Steps to reproduce the problem

  1. Navigate to any warehouse data bucket as an admin (non-superuser)
  2. Select 'Delete data source'.

This results in a '403 Forbidden' error.

The data source no longer appears in the control panel but does appear in S3.

Expected behaviour

It is expected that the data source will be deleted from the control panel and S3 and that the user will not get an error message.