[jboss-jira] [JBoss JIRA] (JBADMCON-175) backslash not escaped when specifying a JDBC connection url
Johnathon Lee (JIRA)
issues at jboss.org
Wed Oct 8 10:17:12 EDT 2014
[ https://issues.jboss.org/browse/JBADMCON-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johnathon Lee updated JBADMCON-175:
-----------------------------------
Description:
"\" is commonly used in connection URLs but not escaped via the console.
Workaround: "\\" use the backslash to escape itself... not sure if this is the actual preference here.
Start with a clean instance.
http://localhost:9990/console/App.html#datasources
disable ExampleDS
Connection tab -> edit connection url.
change from:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;
to:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing\thing
see the result:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing hing
was:
"\" is commonly used in connection URLs but not escaped via the console.
Start with a clean instance.
http://localhost:9990/console/App.html#datasources
disable ExampleDS
Connection tab -> edit connection url.
change from:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;
to:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing\thing
see the result:
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing hing
> backslash not escaped when specifying a JDBC connection url
> -----------------------------------------------------------
>
> Key: JBADMCON-175
> URL: https://issues.jboss.org/browse/JBADMCON-175
> Project: JBoss Admin Console
> Issue Type: Feature Request
> Components: DataSource, General Console
> Reporter: Johnathon Lee
>
> "\" is commonly used in connection URLs but not escaped via the console.
> Workaround: "\\" use the backslash to escape itself... not sure if this is the actual preference here.
> Start with a clean instance.
> http://localhost:9990/console/App.html#datasources
> disable ExampleDS
> Connection tab -> edit connection url.
> change from:
> jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;
> to:
> jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing\thing
> see the result:
> jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;PROP=thing hing
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list