<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/reports/new?reportable_id=000&reportable_type=DiaryEntry" rel="nofollow">https://www.openstreetmap.org/reports/new?reportable_id=000&reportable_type=DiaryEntry</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<p dir="auto">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.</p>
<p dir="auto">This is because there are no <code class="notranslate">check_database_writable</code> 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.</p>
<p dir="auto">It might be worth going through the other controllers to check that they have appropriate <code class="notranslate">check_database_writable</code> and <code class="notranslate">check_database_readable</code> checks too.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><em>No response</em></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3875">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMKNGBURHX4F6TWOL3WRALVDANCNFSM6AAAAAATTCLB6E">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNL7EECHCWUSCY7BFDWRALVDA5CNFSM6AAAAAATTCLB6GWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFVQFW6Q.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3875</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3875",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3875",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>