View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004003 | Spring engine | General | public | 2013-09-12 23:13 | 2013-09-12 23:32 |
| Reporter | LostOverflow | Assigned To | Kloot | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | suspended | ||
| Summary | 0004003: SpEL can't evaluate value if properties contain self quotes | ||||
| Description | I'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 Reproduce | try to evaluate SpEL expression: <property name="prop" value="#{'${prop1}'+'${prop2}'}" /> with props values: abc; cd'e | ||||
| Additional Information | If 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+ | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Checked infolog.txt for Errors | |||||
| 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 |