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

Remove spring-boot-starter-data-mongodb #10562

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

nr23730
Copy link
Contributor

@nr23730 nr23730 commented Jan 23, 2024

Since 6.0.0 cBioPortal ships with spring-boot-starter-data-mongodb which includes the mongodb java client in currently version 4.9.1.
cBioPortal still uses 3.12.14. The APIs of both are incompatible to each other. Depending on your java version and it's lib strategy this can cause a Method not found error. On my workstation I had no issues, but using a alpine-based docker image I ran into this issue.

So I suppose to remove the spring-boot one for now. In addition I think that using the version of mongodb that ships with spring-boot only makes sense if the spring-boot versions between cBioPortal and session-service are aligned (which they aren't at the moment).

@haynescd
Copy link
Collaborator

after this fix did it still fail on your alpine-based docker image?

@nr23730
Copy link
Contributor Author

nr23730 commented Apr 26, 2024

The proposed change fixed it.
Also the maven dependency tree shows both versions of the library. With the patch it is reduced to one.

@haynescd haynescd merged commit e9e6a45 into cBioPortal:master Apr 29, 2024
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants