Bug 724366 (BRMS-312)

Summary: Allow escaping characters in metadata value
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tihomir Surdilovic <tsurdilo>
Component: unspecifiedAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0.1   
Target Milestone: ---   
Target Release: 5.1.0 GA, 5.1.0.ER1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-312
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-23 13:04:44 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:

Description Tihomir Surdilovic 2010-04-30 02:37:06 UTC
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/820173
securitylevel_name: Public

Currently if you add the following metadata to a rule:

rule xyz
@text("it's an \"airplane")
.....
end

if you print the metadata with:

System.out.println(ksession.getKnowledgeBase().getRule("org.sample.myrules", "xyz").getMetaAttribute("text"));

the output is:

"it's an \"airplane"

escaped characters should be handled correctly here.

Comment 1 Tihomir Surdilovic 2010-04-30 02:37:51 UTC
Link: Added: This issue depends JBRULES-2494


Comment 2 Tihomir Surdilovic 2010-09-07 19:16:06 UTC
Resolved. Available in 5.1

Comment 3 Dana Mison 2010-10-27 03:05:54 UTC
Release Notes Text: Added: test


Comment 4 Dana Mison 2010-10-27 03:13:31 UTC
Release Notes Text: Removed: test 


Comment 5 David Le Sage 2010-11-01 00:50:00 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: If escape characters appeared in quotation marks, they would erroneously be displayed when output, as were the quotation marks themselves.  Escaped characters within quotation marks are now displayed and printed correctly and the surrounding quotation marks are removed.


Comment 6 Lukáš Petrovický 2010-11-23 13:04:44 UTC
Verified fixed in BRMS 5.1.0 ER4