View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037359 | mantisbt | bugtracker | public | 2026-08-26 02:48 | 2026-08-28 02:43 |
| Reporter | rnijhof | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.27.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037359: Admin check reports false FAIL when Graphviz path is outside open_basedir | ||||
| Description | SummaryOn a clean MantisBT 2.28.4 installation, the admin installation check reports multiple One of the reported failures appears to be misleading:
The Environment
Steps to reproduce
Actual resultThe following checks are reported as
The Graphviz failures are understandable because However, the Example runtime value:
The exact condition used by the admin check:
evaluates to:
Additional investigationCalling:
results in an
The admin check function contains:
This appears to allow a successful check ( Expected result
NotesThe issue is reproducible with a clean MantisBT 2.28.4 installation, so it does not appear to be caused by modified or leftover files from an upgrade. All paths in this report are anonymized examples. | ||||
| Tags | No tags attached. | ||||
|
Thanks for the detailed report. So there are actually 2 distinct bugs here:
I believe this was introduced when the graphviz_path config was added in 0034609 (2.27.0), more specifically by commit MantisBT master 25bf40e9 which updated the admin check. |
|
|
Proposed fix: PR https://github.com/mantisbt/mantisbt/pull/2267 |
|
|
@dregad, thks for your quick response! Unfortunately, I’m no longer able to test the solution. In the meantime, I’ve migrated our environment to the new version, as I assumed the warnings did not apply to our installation. |
|
OK, sp we'll just have to trust that my unit tests were good enough then ;-)
Rightly so. |
|
Hahaha, i agree :) |
|
|
MantisBT: master f481e3be 2026-08-26 05:53 Details Diff |
Do not check graphviz_path when disabled When $g_relationship_graph_enable = OFF, it does not make sense for the admin checks to verify correcness of the graphviz_path config. Fixes 0037359 |
Affected Issues 0037359 |
|
| mod - admin/check/check_paths_inc.php | Diff File | ||
|
MantisBT: master 50f5cfd3 2026-08-26 06:01 Details Diff |
Fix failure reported under wrong admin check Flush unhandled PHP SYSTEM WARNING triggered by calling realpath() when open_basedir restriction is in place after building the list of paths to check. This prevents a failure report about a missing trailing directory separator being incorrectly reported for the absolute_path config. Fixes 0037359 |
Affected Issues 0037359 |
|
| mod - admin/check/check_paths_inc.php | Diff File | ||