[openstreetmap/openstreetmap-website] Reporting issues doesn't respect database_readonly mode (Issue #3875)

Andy Allan notifications at github.com
Fri Jan 6 13:19:13 UTC 2023


### URL

https://www.openstreetmap.org/reports/new?reportable_id=000&reportable_type=DiaryEntry

### How to reproduce the issue?

If you boot the application in database_readonly mode, then links to report issues still appear, and the report issue form is shown and is active. It will then error after submission.

This is because there are no `check_database_writable` checks in reports_controller. There's none in issues_controller either, which is used by moderators for opening/closing/reassinging issues, all of which also require writeable database.

It might be worth going through the other controllers to check that they have appropriate `check_database_writable` and `check_database_readable` checks too.

### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3875
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3875 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230106/70e3420e/attachment-0001.htm>


More information about the rails-dev mailing list