[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2494) Allow escaping characters in metadata value
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Thu Apr 29 12:16:06 EDT 2010
[ https://jira.jboss.org/jira/browse/JBRULES-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli closed JBRULES-2494.
----------------------------------
Fix Version/s: 5.1.0.M2
Resolution: Done
Fixed.
For metadata values that are surrounded by " ", Drools is now unescaping any escaped character inside it and removing the surrounding " ".
Example:
@text("It's an escaped\" string" )
Will became:
It's an escaped" string
> Allow escaping characters in metadata value
> -------------------------------------------
>
> Key: JBRULES-2494
> URL: https://jira.jboss.org/jira/browse/JBRULES-2494
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.1.0.M1
> Reporter: Tihomir Surdilovic
> Assignee: Edson Tirelli
> Fix For: 5.1.0.M2
>
>
> 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.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list