View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0034503 | mantisbt | administration | public | 2024-07-10 05:33 | 2025-03-01 18:40 |
| Reporter | marc.kraemer | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.27.1 | Fixed in Version | 2.27.1 | ||
| Summary | 0034503: t_admin_dir_is_accessible check is wrong | ||||
| Description | the test for accessible admin dir is wrong: $t_admin_dir_is_accessible = @file_exists( $t_admin_dir . '/.' ); setting chmod 0000 admin makes the dir unaccessible! If this results in "true", the require("admin/schema.php") will make the bugtracker inaccessable | ||||
| Tags | No tags attached. | ||||
Confirmed, this triggers a system warning require_once(/var/www/mantisbt/admin/schema.php): Failed to open stream: Permission denied' in /var/www/mantisbt/login_page.php' line 188 I guess that replacing the file_exists() by is_readable() should fix the problem, but I don't have time to test at the moment. |
|
|
MantisBT: master-2.27 b337bef5 2024-10-27 10:59 Details Diff |
Fix incorrect check for admin dir on login page Belt and braces: - use is_readable() instead of file_exists() to check admin dir - if admin dir is accessible, use include_once instead of require_once to read schema.php, so we don't get a fatal error in case the file cannot be read and just skip the schema version check in that case. Fixes 0034503 |
Affected Issues 0034503 |
|
| mod - login_page.php | Diff File | ||