-
Notifications
You must be signed in to change notification settings - Fork 617
Regression: Constraint Validations are no longer translated into DataIntegrityViolationException with neo4j-java-driver >= 4.3.2 #2542
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
Comments
Puh, this is on a very old SDN version that we actually don't support anymore. There's actually little I can do, VMWare most likely won't do any release of the old 5.x branches anymore. However, I think this can be fixed in the underlying OGM. OGM 3.2.34 will go out this morning, please try it out and close the issue if this fixes things for you. |
This cataches and translations `ClientException` into the generic Neo4j-OGM `CypherException` while consuming the results too. It should fix spring-projects/spring-data-neo4j#2542 and is most likely necessary to encounter for the changes in neo4j/neo4j-java-driver#897.
Thanks for jumping on that so quickly. |
That's kinda odd, because our CI says the job has finished correctly and normally, central isn't that slow. |
Ok, it was a problem of the operator (me, in this case) which is solved now. https://repo1.maven.org/maven2/org/neo4j/neo4j-ogm-core/3.2.34/ Thanks for your ping, @GrahamLea |
Yep, 3.2.34 has fixed it. Thanks. Amazing service! 😉👏 |
Thanks a lot for your feedback <3 |
This cataches and translations `ClientException` into the generic Neo4j-OGM `CypherException` while consuming the results too. It should fix spring-projects/spring-data-neo4j#2542 and is most likely necessary to encounter for the changes in neo4j/neo4j-java-driver#897.
Scenario
Execute a modifying Neo4j transaction that results in a constraint violation.
Expected behaviour
The repository throws a
org.springframework.dao.DataIntegrityViolationException
.(This is what it does with
neo4j-java-driver
versions < 4.3.2)Actual Behaviour
The repository throws a
org.neo4j.driver.exceptions.ClientException
.Reproduction
https://github.com/GrahamLea/neo4j-bugs
TestNodeTest.raises DataIntegrityViolationException on constraint violation
neo4j.driver.version
back to4.3.1
Comments
It's possible there's a regression in
neo4j-java-driver
that has caused this to happen.But the expected result
DataIntegrityViolationException
is part of this project, so I didn't feel I could submit the issue there.The text was updated successfully, but these errors were encountered: