Red Hat Bugzilla – Bug 1268005
Markup characters in constants are not saved in datamapper
Last modified: 2016-02-09 04:14:13 EST
Description of problem:
Characters that are used in our internal markup for the json serialization of assignments are not handled correctly by the datamapper (or the old assignments editor). For example, if you include '=' or ',' in constants, then save, close and re-open the process, the constants are truncated.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a BP with a user task
2. Add some datainputs wiht constants which include chars =,
3. Save and re-open the process
4. Some of the constants will have been truncated
Fixed by making sure markup characters in constants are encoded and decoded behind the sceneds, when necessary.
Is it good enough to encode symbol "," to "##" and symbol "=" to "||"?
Also I can to imagine some constant string like "A |= B" which after decoding will be "A =| B" (the same situation with "#," which will be ",#") because of constant_value.replaceAll("||", "=").
And is it expected that if you will type some constant value with "\" symbol (like "C:\Documents\here") I/O Editor have no reaction for Save button click?
Google Chrome shows:
"SEVERE [LogConfiguration] Exception caught: (SyntaxError) : Unexpected token d" error message at
Fixed by URLEncoding and URLDecoding constants when necessary.
There is no changes on 6.3.x branch and in current release.
P.S. Master branch works good.
Set to MODIFIED but changed target release to 6.3.0
Verified for 6.3.DR1