Bug 1062289

Summary: Create new Package dialog displays no warning when using " in package name
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: low Docs Contact:
Priority: medium    
Version: 6.0.0CC: jlocker, kverlaen, lpetrovi, rrajasek
Target Milestone: ER2   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:58:55 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:
Attachments:
Description Flags
New package popup warning when quote in name
none
New package popup warning when slash in name none

Description Zuzana Krejčová 2014-02-06 15:21:36 UTC
Description of problem:
When creating a new package, the Create new Package dialog will not display any warning when using " in the package name. It does give warnings on other illegal characters though.
Although there is no warning, the package is not created and it seems as if simply nothing happened when clicking Ok.


Version-Release number of selected component (if applicable):
BPMS 6.0 CR2

Comment 1 Zuzana Krejčová 2014-02-07 09:59:04 UTC
Same thing happens with slash (\). Other invalid chars seem to produce a warning, as expected.

Comment 2 manstis 2014-02-26 11:32:41 UTC
Created attachment 867934 [details]
New package popup warning when quote in name

Comment 3 manstis 2014-02-26 11:33:03 UTC
Created attachment 867935 [details]
New package popup warning when slash in name

Comment 4 manstis 2014-02-26 11:33:59 UTC
Please see attached. I cannot replicate.

Can you please retest with next release (or advise if I've done something wrong).

Thanks,

Mike

Comment 5 Zuzana Krejčová 2014-02-28 13:07:34 UTC
(In reply to manstis from comment #4)
> Please see attached. I cannot replicate.
> 
> Can you please retest with next release (or advise if I've done something
> wrong).
> 
> Thanks,
> 
> Mike

Colleague came up with the probable reason for this - is it possible that the input is not escaped properly before being sent?

'a\b' works, 'a\\' as well, but e.g. 'a\s' does not. 'a\"' works as well.

For 'a"b', I get the following from error console in the browser:
uncaught exception: com.google.gwt.json.client.JSONException: Error parsing JSON: SyntaxError: JSON.parse: expected ':' after property name in object
And for 'a\s', I get this:
uncaught exception: com.google.gwt.json.client.JSONException: Error parsing JSON: SyntaxError: JSON.parse: bad escaped character