View Issue Details

IDProjectCategoryView StatusLast Update
0022901mantisbthtmlpublic2017-05-20 09:09
ReporterscrscAssigned Todregad 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0022901: URL with brackets is not correctly "maked" (with Kibana)
Description

With g_html_make_links the http URLs are automatically replaced with <a href ...> and </a>

But for this (valid) URL the detection for URL end is not correct:
http://elk.canda.biz/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:'deve-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))
(URL is generated by kibana Version: 5.1.1)

Should be complete href'ed but stops before "(columns".

TagsNo tags attached.

Activities

scrsc

scrsc

2017-05-19 06:32

reporter   ~0056906

Ok. Just see with the Mantis 2.4.0 it is working...

scrsc

scrsc

2017-05-19 06:33

reporter   ~0056907

No CORRECTION.

With Mantis 2.4.0 the last two "))" are not considered to be in the URL.

scrsc

scrsc

2017-05-19 06:37

reporter   ~0056908

See picture what 2.4.0 shows and what our mantis version shows.



dregad

dregad

2017-05-20 08:49

developer   ~0056917

Last edited: 2017-05-20 09:09

View 2 revisions

The difference in behavior is due to our use of Markdown in the Core Formatting plugin. When Markdown is disabled, I see the same problem with URL highlighting in your first screenshot.

So there seems in fact to be 2 distinct issues:

  • native URL processing needs to be improved, (update the regex in string_insert_hrefs() function)
  • URL processing in ParseDown library

EDIT: Parsedown issue reported upstream https://github.com/erusev/parsedown/issues/505

Issue History

Date Modified Username Field Change
2017-05-19 06:32 scrsc New Issue
2017-05-19 06:32 scrsc Note Added: 0056906
2017-05-19 06:33 scrsc Note Added: 0056907
2017-05-19 06:37 scrsc File Added: 2017-05-19 12_33_41-0022901_ URL with brackets is not correctly _maked_ (with Kibana) - MantisBT.png
2017-05-19 06:37 scrsc File Added: 2017-05-19 12_35_06-0593824_ Mantis erstellt falschen URL Link - MantisBT@RSC (live).png
2017-05-19 06:37 scrsc Note Added: 0056908
2017-05-20 08:49 dregad Assigned To => dregad
2017-05-20 08:49 dregad Status new => acknowledged
2017-05-20 08:49 dregad Note Added: 0056917
2017-05-20 09:09 dregad Note Edited: 0056917 View Revisions