-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Problem with fetching snapshot by commit id (from version 5.6.1) when using MongoDB #958
Comments
patpro1
changed the title
Problem with fetching
Problem with fetching snapshot by commit id (from version 5.6.1) when using MongoDB
Apr 16, 2020
@patpro1 don't paste your print-screens , provide a runnable test case as stated in Guidelines for Bug Reporting Guidelines for Bug Reporting https://github.com/javers/javers/blob/master/CONTRIBUTING.md#guidelines-for-bug-reporting |
Reopen if you want to contribute a PR or if you come up with a failing test case |
@bartoszwalacik I've pushed failing test to my fork: I hope it's enough? |
bartoszwalacik
added a commit
that referenced
this issue
Jul 8, 2020
Merged
bartoszwalacik
added a commit
that referenced
this issue
Jul 10, 2020
bartoszwalacik
added
fixed - waiting to be released
and removed
test case required
labels
Jul 12, 2020
fixed in 5.10.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update from version 5.6.0 to 5.6.1 contains change in this line in MongoRepository.java (
javers/javers-persistence-mongo/src/main/java/org/javers/repository/mongo/MongoRepository.java
Line 282 in a72718a
was changed to:
After that change when snapshot has commit id with minor version different than 0 (e.g. 372136.02) this snapshot is not fetched from repository by commit id - problem is in passing BigDecimal value to query instead of double value (with double value snapshot is returned without problems - checked by debugging on line
javers/javers-persistence-mongo/src/main/java/org/javers/repository/mongo/MongoRepository.java
Line 256 in a72718a
I've added screens from debug between two version to explain the problem:
VERSION 5.6.0
VERSION 5.6.1
The text was updated successfully, but these errors were encountered: