Bug 1316902

Summary: Error : no viable alternative at character '\' after copy-pasting script to Script field in Properties view
Product: [Retired] JBoss BPMS Platform 6 Reporter: Tibor Zimanyi <tzimanyi>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: low Docs Contact:
Priority: medium    
Version: 6.3.0CC: kverlaen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:09:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tibor Zimanyi 2016-03-11 12:35:31 UTC
Description of problem:

When copy-pasting script task Script property, which contains new lines, from other script task's Script property, error message 

"ERROR [stderr] (EJB default - 9) line 1:69 no viable alternative at character '\'" 

can be seen in server.log. 


Version-Release number of selected component (if applicable): 6.3.0.DR2


Steps to Reproduce:

1. Create new process with script task: 

com.llnw.bpm.UpdateObject _update = new com.llnw.bpm.UpdateObject();

_update.setMessage("This is the message");

(also with empty lines)

2. Copy Script property of script task directly (without opening the expression editor) from Properties view into clipboard. 
3. Clear Script property. 
4. Paste copied content into Script property in expression editor. 
5. Save process.
6. See server.log.

Actual results:

Server log contains errors:
13:31:57,706 ERROR [stderr] (EJB default - 10) line 1:69 no viable alternative at character '\'
13:31:57,707 ERROR [stderr] (EJB default - 10) line 1:71 no viable alternative at character '\'

Expected results:

Server log contains no errors.