Using comments in a GEL script replaces some characters

Document ID : KB000046061
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue

If there are comments inside a GEL script, some characters get silently replaced when saving. No error or warning is shown, making it difficult to identify.

 

Steps to reproduce

1. Create a new process, add an action to use the following GEL script:

<gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:core="jelly:core" xmlns:file="jelly:com.niku.union.gel.FileTagLibrary" xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary" xmlns:sql="jelly:sql" xmlns:xog="http://www.niku.com/xog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 

<gel:setDataSource dbId="niku"/> 

<!-- Comment --> 

<sql:query escapeText="false" var="query"><![CDATA[ 

SELECT * FROM prtask WHERE prname LIKE '%DEPARTMENT%' 

]]></sql:query>

</gel:script>

2. Click Save.

Expected Result: SQL query will show as SELECT * FROM prtask WHERE prname LIKE '%DEPARTMENT%'

Actual Result: SQL query will show as SELECT * FROM prtask WHERE prname LIKE 'ÞPARTMENT%' (%DE has been silently replaced by Þ), no error/warning shown.

 

Environment

This has been reproduced in 14.3.0.8 and 14.4.

 

Cause

This is caused by CLRT-81092.

 

Workaround

Correct the unwanted substitutions and temporarily remove the code comments.

 

Resolution

This issue is currently under review by Sustaining Engineering.