[jboss-jira] [JBoss JIRA] Updated: (JBAS-1888) Incorrect variable expansion in org.jboss.util.propertyeditor.PropertiesEditor
Jason T. Greene (JIRA)
jira-events at lists.jboss.org
Mon Apr 13 14:14:41 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason T. Greene updated JBAS-1888:
----------------------------------
Fix Version/s: JBossAS-6.0.0.Alpha1
(was: JBossAS-5.1.0.CR1)
> Incorrect variable expansion in org.jboss.util.propertyeditor.PropertiesEditor
> ------------------------------------------------------------------------------
>
> Key: JBAS-1888
> URL: https://jira.jboss.org/jira/browse/JBAS-1888
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Reporter: Bela Ban
> Assignee: Scott Marlow
> Priority: Minor
> Fix For: JBossAS-6.0.0.Alpha1
>
>
> When I use the ${jboss.server.data.dir} variable in the example below, it is correctly expanded:
> <attribute name="bla">${jboss.server.data.dir}</attribute>
> However, when I use it in a Properties attribute, the expansion removes backslashes on Windows, e.g. in the example below:
> <attribute name="CacheLoaderConfig">
> location = ${jboss.server.data.dir}/myCache
> </attribute>
> , I get c:JBoss3.2.7serverdefaultdata/myCache.
> Scott Stark's reply:
> The org.jboss.util.propertyeditor.PropertiesEditor which is what should be used for an attribute of type java.util.Properties does replace ${x} property references in values. The problem is that calling setProperty with the replacement value is not using an escaped string and so the win32 backslash is seen as a char escape sequence. Create a jira issue for this.
--
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