google-code-export / h2database

Automatically exported from code.google.com/p/h2database
0 stars 1 forks source link

Invalid normalization of drive letter for baseDir in ConnectionInfo on Windows platform #296

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Initialize H2 database on windows with lower letter drive  "d:"
Server db = Server.createTcpServer(new String[] { 
"-tcp","-tcpAllowOthers","true","-tcpPort","9092","-web","-webPort","9090","-tra
ce","-baseDir","d:/h2database" });
db.start()
2. Connect to database by JDBC with 
URL=jdbc:h2:tcp://localhost:9092/kfin;DB_CLOSE_DELAY=-1

3. org.h2.jdbc.JdbcSQLException:
IO Exception: "D:\h2database\kfin outside d:\h2database" [90028-152]

What is the expected output? What do you see instead?

The problem is in org.h2.engine.ConnectionInfo near row 152, on Windows 
platform the drive letter "D:" is same as "d:", so the comparison of normalized 
name and absDir should be case insensitive for drive letters. 

Original issue reported on code.google.com by kek.for...@gmail.com on 6 Mar 2011 at 2:06

GoogleCodeExporter commented 9 years ago
This should be already fixed in the trunk (the option -baseDir also didn't work 
with symbolic links), could you try it out? You would have to build the jar 
file yourself, or use the latest nightly build:

http://h2database.com/html/download.html
http://www.h2database.com/automated/h2-latest.jar

Original comment by thomas.t...@gmail.com on 6 Mar 2011 at 3:54

GoogleCodeExporter commented 9 years ago
I tried the http://www.h2database.com/automated/h2-latest.jar  and everything 
is OK, the problem was solved. My issue could be closed.

Thank you for your help, great job!

Original comment by kek.for...@gmail.com on 7 Mar 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Should be fixed in version 1.3.153

Original comment by thomas.t...@gmail.com on 25 Mar 2011 at 7:23