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
[Transactions] Are they really supported by the binary protocol? #4045
Comments
👍 encountered all of these scenario in the REST API as well.... |
hi @StarpTech I tried to reproduce this problems, and yes i could reproduce some of them, for 'example 2' a fix is merged in development, for 'example 3' we have already test case that cover that case and it works so i wasn't enable to reproduce it, for 'example 1' still doing some investigation. thank you for reporting this :) |
Hi @tglman in your test for example 3 you don't create a unique dataset before you execute your batch script. Does it make a difference? |
@StarpTech i was actually adding that test now :) |
@tglman awesome 👍 ^^ |
I fixed all the cases you can review it here : https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/test/java/com/orientechnologies/orient/graph/TestGraphTransactionOnBatch.java there is a particular case though : https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/test/java/com/orientechnologies/orient/graph/TestGraphTransactionOnBatch.java#L165 closing this. |
Is it possible to make a hotfix? I think this is a big security risk when someone trusts in transactions. |
…rations, issue #4045 Conflicts: graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientVertex.java
ported the fixes also to 2.0.x branch, will be out with the 2.0.9 |
👍 thanks. |
Example 1:
At command
t3
I use a fictive ID123456789
but it throws no exception or something like that.Example 2
At command
t4
I use a transaction result$t8
which isn't defined in the query. Like expected it throws an exception but my data aren't restored.Example 3
Another simpler example: This transaction should throw an exception because the Node with the unique index property
Email
julia@local
is already used.My result:
No data is written but I expect an
found duplicated key
exception.Orientdb: 2.0.8
Nodejs Oriento driver
The transaction safety is very limited! Please improve this.
The text was updated successfully, but these errors were encountered: