View Issue Details

IDProjectCategoryView StatusLast Update
0004003Spring engineGeneralpublic2013-09-12 23:32
ReporterLostOverflow Assigned ToKloot  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionsuspended 
Summary0004003: SpEL can't evaluate value if properties contain self quotes
DescriptionI'm using org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
class to work with my properties.
I'm trying to evaluate the value by concatenation of several props in such way:
{code:xml}
<property name="regex"
value="#{'${reader.regexp.header.room}'+ '${reader.regexp.header.isZoom}'+ '${reader.regexp.header.egnore}'}" />
{code}
It works fine if props does not contain single quote: '
If it has one - I am having an exception: org.springframework.expression.ParseException: Found closing ')' at position 109 without an opening '('
Want to notice: if I try a similar expression in SINGLE line:
{code:xml}
<property name="regex" value="${reader.regexp.header.room}${reader.regexp.header.isZoom}${reader.regexp.header.hand}${reader.regexp.header.pokerType}${reader.regexp.header.limitType}${reader.regexp.header.blinds}${reader.regexp.header.date}${reader.regexp.header.systemTime}${reader.regexp.header.egnore}" />
{code}
it works fine TOO!
Steps To Reproducetry to evaluate SpEL expression:
<property name="prop" value="#{'${prop1}'+'${prop2}'}" />
with props values: abc; cd'e
Additional InformationIf you can't reproduce the bug, try my original xml config and props files.
problem property id reader.regexp.header.pokerType=(Hold'em|Omaha)\\s+
TagsNo tags attached.
Attached Files
cfg_props.zip (Attachment missing)
Checked infolog.txt for Errors

Activities

Kloot

2013-09-12 23:31

developer   ~0011596

wrong project, you want to be here: www.springsource.org instead of here: springrts.com

Issue History

Date Modified Username Field Change
2013-09-12 23:13 LostOverflow New Issue
2013-09-12 23:13 LostOverflow File Added: cfg_props.zip
2013-09-12 23:31 Kloot Note Added: 0011596
2013-09-12 23:32 Kloot Status new => closed
2013-09-12 23:32 Kloot Assigned To => Kloot
2013-09-12 23:32 Kloot Resolution open => suspended