Bug 1311898

Summary: Double-quotes not working in constants in DataIOEditor
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jeremy Lindop <jlindop>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0   
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:40:35 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:
Attachments:
Description Flags
ConsoleError none

Description Jeremy Lindop 2016-02-25 09:55:53 UTC
Created attachment 1130461 [details]
ConsoleError

Description of problem:
If the user tries to create a constant with double quotes, e.g. value="this"  in the DataIOEditor, the constant is not saved correctly.

Version-Release number of selected component (if applicable):
6.2.0.GA

Steps to Reproduce:
1. Create a BP with a User Task
2. Add a DataInput to the task
3. Set the source of the DataInput to a constant which includes double-quotes

Actual results:
When the user clicks the "OK" button, sometimes there is no response (but there's an error in the browser's debug console) and sometimes the constant is apparently saved, but when the BP is saved then reopened, the constant is missing the double-quote characters.

Expected results:
Constants should allow double-quote characters.

Additional info:
See attached image

Comment 2 Jeremy Lindop 2016-04-22 13:37:22 UTC
To reproduce this problem in jbpm-6.4.0.Final:

- Create a BP
- Add a User Task
- Open the Data I/O Editor for the task
- Add a Data Input called "input1" and set the source to the constant "hello", including the double-quote characters at the beginning and end. When the focus leaves the Source text-box, the UI should say ""hello"" indicating that the constant is "hello", with a double-quote before and after the word.
- Click the Save button on the Data I/O Editor
- Open the Data I/O Editor for the task (source still says ""hello"" at this point)
- Click the Save button on the Data I/O Editor
- Open the Data I/O Editor for the task - at this point, the Source value says "hello", i.e. the constant itself has lost its start and end double-quote.