Project

General

Profile

action #95842

Updated by tinita almost 3 years ago

## Observation 
 Putting an URL like https://build.suse.de/request/show/245055#comment-3760740 into an openQA comment field is converted into HTML code 

 ```html 
 also commented on <a href="https://build.suse.de/request/show/245055">https://build.suse.de/request/show/245055</a>#comment-3760740 
 ``` 

 > also commented on <a href="https://build.suse.de/request/show/245055">https://build.suse.de/request/show/245055</a>#comment-3760740 

 ## Expected result 

 should be 

 ```html 
 also commented on <a href="https://build.suse.de/request/show/245055#comment-3760740">https://build.suse.de/request/show/245055#comment-3760740</a> href="https://build.suse.de/request/show/245055">https://build.suse.de/request/show/245055#comment-3760740</a> 
 ``` 

 > also commented on <a href="https://build.suse.de/request/show/245055#comment-3760740">https://build.suse.de/request/show/245055#comment-3760740</a> href="https://build.suse.de/request/show/245055">https://build.suse.de/request/show/245055#comment-3760740</a> 

 ## Acceptance criteria 
 * **AC1:** The complete URL including the part after `#` is converted into an `<a href>` 

 ## Suggestions 
 * Add a test, e.g. in t/ui/15-comments.t 
 * Try to fix https://rt.cpan.org/Public/Bug/Display.html?id=55545 upstream . As alternative solve it downstream on our side in https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/Utils.pm#L433

Back