View Issue Details

IDProjectCategoryView StatusLast Update
0036915mantisbtbugtrackerpublic2026-04-08 18:46
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0036915: core.php should not return HTTP 200 when aborting due to an error
Description

It would be better to exit with an HTTP 500 code, this way the client will know something wrong occurred.

If running from cli, we should exit with code 1 instead.

TagsNo tags attached.

Relationships

related to 0036916 resolveddregad GitHub Actions CI builds should fail during install phase 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master e600f44e

2026-03-06 12:28

dregad


Details Diff
core: new fatal_error() function

Ensures consistent behavior when an error occurs during MantisBT core
initialization.

In addition to displaying an error message, we now also return a proper
HTTP 500 error code (or 1 if running from CLI).

Fixes 0036915
Affected Issues
0036915
mod - core.php Diff File