openQA webUI markdown issue- display wrong bug number.
there have an issue on openQA webUI, if the bug summary has string of "bsc#xxx", it will be display the latest bug number, not the right one.
1.like below info:
bsc#1043970 (Ticket status: RESOLVED (FIXED), prio: P5, assignee: firstname.lastname@example.org)
2.paste into o.s.d, show:
bsc#1043760">bsc#1043970 (Ticket status: RESOLVED (FIXED), prio: P5, assignee: email@example.com)"
detail info , please refer: https://openqa.suse.de/group_overview/62 , added comment by dehai at "Date: 2017-06-13 - 14:06 Build: 0255 (reference 0254)"
#2 Updated by mkittler over 5 years ago
- Status changed from New to Feedback
This is actually not easy to fix. I see 2 options:
Utils.pmso bugrefs inside a title specified via Markdown are not detected/replaced. The problem is that we're currently using regex for this which is too limited.
- Fix the
Text::Markdownmodule which should not produce wrong HTML - also if a title contains a link.
Both seems like much effort for fixing this relatively unimportant bug.
Note that the particular case where the bugref is at the end could easily be fixed via regex. So this would at least fix this concrete issue: https://github.com/os-autoinst/openQA/pull/1372