View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037376 | mantisbt | api rest | public | 2026-09-08 05:24 | 2026-09-08 08:15 |
| Reporter | hetalp | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Product Version | 2.27.1 | ||||
| Summary | 0037376: MantisBT REST API returns 302 redirect to login page instead of API response when using Authorization token | ||||
| Description | The MantisBT REST API is currently not returning the expected API response when an API token is provided through the When calling the REST API with a valid API token, the request is redirected to the Mantis login page instead of returning the requested API data. API Request
Current Response
Expected ResponseThe API should authenticate the user using the supplied API token and return the requested project data, for example:
with the project information in the response body. Investigation PerformedThe following checks have been completed:
Environment
Technical ObservationThe API token itself is valid and the However, the request ultimately receives a
This redirect is unexpected for an API-token-authenticated REST request.
ImpactREST API clients are currently unable to reliably access MantisBT REST endpoints using API token authentication. This affects API integrations that depend on endpoints such as:
Next InvestigationTrace the Slim middleware execution order and identify which component/code is generating the The following should be investigated:
Expected ResolutionThe REST API should accept a valid API token from the | ||||
| Tags | No tags attached. | ||||
|
First of all, please note that release 2.27.1 is no longer supported. You should at least upgrade to 2.28.4 (consider unpatched security issues !) and confirm that the problem is still present there. For the record, I am regularly using the REST API without issues, so maybe the problem is specific to your environment. |
|
|
Okay, thank you. I will check the latest version. |
|