0026984: REST APIs allows new lines in issue summary field - MantisBT

View Issue Details

IDProjectCategoryView StatusDate SubmittedLast Update
0026984mantisbtapi restpublic2020年05月24日 18:032026年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

2020年05月25日 09:44

developer   ~0064026

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

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
Powered by MantisBT 2.29.0-dev-master-e4ff7ef87
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance
Page execution time: 0.3800 seconds    

AltStyle によって変換されたページ (->オリジナル) /