View Issue Details

IDProjectCategoryView StatusLast Update
0034462mantisbtrelationshipspublic2024-05-21 03:00
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.24.0 
Target Version2.26.3Fixed in Version2.26.3 
Summary0034462: Truncated HTML entities shown in Relationship Graph nodes' Issue summary
Description

When displaying Relationship and Dependency Graphs with Summary, if an Issue's summary contains HTML special characters the truncation logic to keep the nodes boxes small does not detect them and could truncate the output in the middle of the encoded entity, as shown in attached screenshot.

Truncation should occur on raw Summary text, and escaping should only happen after that.

TagsNo tags attached.

Relationships

related to 0017594 closeddregad Display issue Summary inside relation graph nodes 

Activities

dregad

dregad

2024-05-20 07:53

developer   ~0068940

truncated_entity.png (90,276 bytes)   
truncated_entity.png (90,276 bytes)   
dregad

dregad

2024-05-20 08:04

developer   ~0068941

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

Related Changesets

MantisBT: master-2.26 317d7754

2024-05-20 07:59

dregad


Details Diff
Fix display of summary in relationship graph nodes

Apply string_attributes() after truncating the raw Summary text.

Also, use string_attributes instead of string_display_line_links(), as
GraphViz is not able to handle links and other HTML formatting, and
they are not rendered in the HTML title attribute either.

Fixes 0034462
Affected Issues
0034462
mod - core/relationship_graph_api.php Diff File