Closed jonbullock closed 1 year ago
Hi,
the API of OrientDB is supposed to work like this:
OrientDB db = new OrientDB("embedded:/tmp/", OrientDBConfig.defaultConfig());
db.createIfNotExists("documents1663429065341", ODatabaseType.PLOCAL);
this is because it allow to have a API that make sense either with embedded connection, or remote connection, ex remote:
OrientDB db = new OrientDB("remote:/localhost/","root","rootpassword", OrientDBConfig.defaultConfig());
db.createIfNotExists("documents1663429065341", ODatabaseType.PLOCAL);
as you see here only the creation of the OrientDB Instance change not the way you interact for manage databases.
In some version we had some backward compatible behavior, that was allowing too much, towards the future this is the API, so is better to convert the code this way, this works as well in 3.0.x series.
OrientDB Version: 3.1.20
Java Version: OpenJDK 11.0.16
OS: Ubuntu 20.04
Expected behavior
Create database on disk (type = PLOCAL) using path with slashes in it:
Actual behavior
Exception is thrown:
This worked in v3.0.41 and contradicts docs: http://orientdb.org/docs/3.1.x/datamodeling/Concepts.html#database-url