Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOAD SCRIPT screws up the path in Windows #8284

Closed
hrstoyanov opened this issue May 22, 2018 · 1 comment
Closed

LOAD SCRIPT screws up the path in Windows #8284

hrstoyanov opened this issue May 22, 2018 · 1 comment

Comments

@hrstoyanov
Copy link

hrstoyanov commented May 22, 2018

OrientDB Version: 3.0.0

Java Version: 1.8_172

OS:Windows 7 64-bit

Expected behavior

LOAD SCRIPT C:\temp\xxxxxx\recres\recres-webapp\src\main\odb\scripts\schema.sql

should work as expected

Actual behavior

I see this instead:

ecres-webapp\src\main\odb\scripts\schema.sql...
ecres-webapp\src\main\odb\scripts\schema.sql'runcs\

which tells me that the LOAD SCRIPT command is trying to interpret the path and \r, \p makes it bomb. This is scary! The console app should never try to parse the path, but accept is a provided by the user.

Steps to reproduce

One possible workaround is to force UNIX style paths. Then it works .. but cammon?
What does not work is if one tries to wrap the path in "" or ''.

tglman added a commit that referenced this issue Jun 1, 2018
@markodjurovic
Copy link
Contributor

@hrstoyanov Thank you for reporting this issue. Fix will be in v3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants