There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e298be41-05f8-4571-b387-c2f504dd22f8 XWIKI-22213 Open

Possible "Illegal char : at index 4: wiki:" when displaying a job log on Windows

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-866db2ed-5eb7-41fd-a2f5-2ab9773c3dcd Changes by Thomas Mortagne on 13/Jun/24 15:53
 
Description: The [job log displayer ]( | https://github.com/xwiki/xwiki-platform/blob/dfba8556a4f8ff9b167ba4e4034e16195fd97d0a/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/logging_macros.vm#L120 ) ] is doing

{code}
$argument.startsWith('wiki:')
{code}

assuming that if it's not a String it will just get false.

Problem is that if this argument is a Path and the system is Windows this line will crash the script...

We need to make this code a little safer.