View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037097 | mantisbt | other | public | 2026-04-25 02:54 | 2026-05-04 12:26 |
| Reporter | raspopov | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.13.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037097: The debug log displays db_query as the calling function for all database calls on Windows | ||||
| Description | On Windows, helper functions such as | ||||
| Steps To Reproduce | Enable database logging, for example: | ||||
| Additional Information | This occurs because the | ||||
| Tags | No tags attached. | ||||
|
PR: https://github.com/mantisbt/mantisbt/pull/2209 Absolute paths and problematic path separators have been removed since the names of functions and files are already sufficiently unique and the location of the MantisBT files can be changed via the configuration. |
|
|
Nice catch - I rarely use Mantis on Windows and never realized this was an issue. I think that use of absolute paths may also be a problem in symlink scenarios, but did not test to confirm. The bug was likely introduced in 2.13.0 by when logging API was refactored as part of DbQuery class implementation (:mantisbt:7e64b3856:) but I did not actually test earlier versions to confirm if it was also present before. I attach a couple of screenshots illustrating the issue. |
|
|
MantisBT: master 898d8680 2026-05-04 11:38 Committer: community Details Diff |
Fix debug log backtrace for Windows Absolute paths and problematic path separators have been removed, since function and file names are already sufficiently unique, and the location of MantisBT files can be changed via the configuration. The text has also been formatted consistently. Fixes 0037097, PR https://github.com/mantisbt/mantisbt/pull/2209 |
Affected Issues 0037097 |
|
| mod - core/logging_api.php | Diff File | ||