[
https://jira.jboss.org/jira/browse/JBESB-3045?page=com.atlassian.jira.plu...
]
Kevin Conner commented on JBESB-3045:
-------------------------------------
Checked the H2 documentation and the jdbc URL should be jdbc:h2:file:(path) so am changing
the line to dbPath.toURL().toString() to retain the schema.
H2Database bean initialises data directory with encoded path
------------------------------------------------------------
Key: JBESB-3045
URL:
https://jira.jboss.org/jira/browse/JBESB-3045
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.7
Reporter: Kevin Conner
Assignee: Kevin Conner
Fix For: 4.7 CP1
The outcome of this is that the data path is not guaranteed to be in the correct
location, for example an app server path containing spaces would start H2 using %20
instead of those spaces.
If the user does not have the correct permissions then this will fail deployment.
The bug is that the bean uses dbPath.toURI().toString() rather than
dbPath.toURI().getPath().
--
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