-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix bug in JDBC SaveMode.ON_GET_ATTRIBUTE
#2040
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
Fix bug in JDBC SaveMode.ON_GET_ATTRIBUTE
#2040
Conversation
@felixscheinost Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@felixscheinost Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @felixscheinost!
I've left a comment below.
Please run ./gradlew format
once you've added the changes and squash the commits into a single one.
...n-test/java/org/springframework/session/jdbc/AbstractJdbcIndexedSessionRepositoryITests.java
Outdated
Show resolved
Hide resolved
2a43b81
to
8668164
Compare
8668164
to
3eaa127
Compare
Thanks for the PR @felixscheinost! |
Thanks! |
This fixes a bug in the
JDBC
implementation ofSaveMode.ON_GET_ATTRIBUTE
.I included a testcase that triggers the bug.
The steps to reproduce the bug are:
SaveMode.ON_GET_ATTRIBUTE
setAttribute
of a new attributesave
, do agetAttribute
of the same attributeON_GET_ATTRIBUTE
causes this attribute to be set toDeltaValue.UPDATED
UPDATED
iff not already set toADDED
save
tries to justUPDATE
the new value which fails silently