commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-493) Incorrect backslash handling in windows environment variable
Date Thu, 12 Apr 2012 17:45:20 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252648#comment-13252648
] 

Oliver Heger commented on CONFIGURATION-493:
--------------------------------------------

The changes you see may be related to CONFIGURATION-418. (This issue also contains a longer
discussion about backslash parsing and its complexity.) It may be necessary now to escape
the backslashes in the value of the variable. Details can be found in the user's guide at

http://commons.apache.org/configuration/userguide/howto_properties.html#Special_Characters_and_Escaping

Does this solve your problem?
                
> Incorrect backslash handling in windows environment variable
> ------------------------------------------------------------
>
>                 Key: CONFIGURATION-493
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-493
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.8
>            Reporter: Patrick Vanhuyse
>             Fix For: 1.7
>
>
> Windows environment variable :
> DFSROOT=\\DFSROOT\BEG
> Properties file :
> Personnel.jdbc.url = jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=${DFSROOT}/databases/personnel.mdb
> Value returned...
> ...using 1.8 (incorrect) :
> jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=\DFSROOT\BEG/databases/personnel.mdb
> ...using 1.7 (correct) :
> jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=\\DFSROOT\BEG/databases/personnel.mdb

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message