View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036810 | mantisbt | bugtracker | public | 2026-01-01 19:13 | 2026-01-07 07:15 |
| Reporter | derick | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.28.0 | ||||
| Target Version | 2.28.1 | Fixed in Version | 2.28.1 | ||
| Summary | 0036810: Accessing bug_report_page.php (and other pages) anonymously results in blank page | ||||
| Description | Going to /bug_report_page.php as an unauthenticated user when $g_allow_anonymous_login = OFF results in a blank page. I think I have traced this down to a bug in Mantis (2.28.0). In bug_report_page.php (line 164) it calls access_ensure_project_level( config_get( 'report_bug_threshold' ) ); which calls access_denied() (correctly) The fix is simple (as I see it). Instead of calling: This triggers thedie() earlier (in core/print_api.php, line 137), and the HTTP status code doesn't get overridden. | ||||
| Additional Information | Originally reported by Derick Rethans on Gitter chat room: This bug affects bug_report_page.php, changelog_page.php, roadmap_page.php and some more. | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master-2.28 2f868827 2026-01-01 19:19 Details Diff |
Fix access_denied() for anonymous user when disabled Going to /bug_report_page.php as an unauthenticated user when $g_allow_anonymous_login = OFF resulted in a blank page Regression introduced by commit 2f75ab6d8e1d829d094985662faf7dcf1aa24102. Setting $p_die parameter to true fixes the problem. Fixes 0036810 |
Affected Issues 0036810 |
|
| mod - core/access_api.php | Diff File | ||