View Issue Details

IDProjectCategoryView StatusLast Update
0026984mantisbtapi restpublic2026-08-22 14:06
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.24.1 
Target Version2.29.0Fixed in Version2.29.0 
Summary0026984: REST APIs allows new lines in issue summary field
Description

This is not allowed by the UI and is not handled consistently. For example:

  1. Issue View page shows the summary as one line
  2. My View and View Issues pages show multiline.
  3. Updating the summary changes the value to a single line, with history that shows multi-line, etc.

Hence, the REST API should block use of multi-line summary fields.

TagsNo tags attached.

Activities

dregad

dregad

2020-05-25 09:44

developer   ~0064026

Do we need some kind of cleanup task to remove newlines, or maybe an admin check ?

vboctor

vboctor

2026-08-22 04:03

manager   ~0071358

PR: https://github.com/mantisbt/mantisbt/pull/2261

I created a fix to stop this from happening - given that this is unlikely to happen or be done by the API caller, I didn't think it is worth adding a migration.

Related Changesets

MantisBT: master 37762f56

2026-08-22 03:55

vboctor


Details Diff
Reject multiline issue summaries

Fixes 0026984
Affected Issues
0026984
mod - core/bug_api.php Diff File
mod - tests/rest/RestIssueTest.php Diff File