-
Notifications
You must be signed in to change notification settings - Fork 39
Upgrade dependencies for v1.17.x #698
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
Conversation
- upgrade Dockerfile base images from jdk 17 to 21 - switch from focal to alpine
except the postgres stuff
Spent a few hours trying to figure out why tests were failing... Turns out this is due to the fact that the Lines 193 to 195 in 34fb697
This resulted in a (silent) version conflict, leading to obscure errors like:
|
this caused a silent version conflict, because spring-data-mongodb is actually managed via the spring-boot-starter-parent
to prevent confllicts, because lombok is already managed by spring-boot-starter-parent
Tests In addition,
I traced this down to the change from Now to come up with a fix. Side note: for the no-token cases, shouldn't a status 401 be returned instead of 403? debugging notes:
|
Apparently spring-security's method-level security annotations ( To me this makes no sense at all, but, apparently, it is true:
It does at least explain why we see a status 400 instead of a 403 (or 401?) for the token tests. |
The error message
arises because spring is trying to deserialize an |
The immediate cause of the failing tests, as indicated by @PatrickDekkerHealthRI (#703), is that the test data created in For example, However, this should result in a status 400 response with validation results, instead of failing on binding with a JSON parse error. This probably has to do with the |
If we communicate with the API normally, i.e. not via the For example:
Note also that |
From the docs:
and
|
to match develop
…o 3.5.0 (#702) * Bump org.springframework.boot:spring-boot-starter-parent Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.4.5 to 3.5.0. - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.4.5...v3.5.0) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-starter-parent dependency-version: 3.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix test res302_redirectsToSwaggerUI spring-boot 3.5 changed the way TestRestTemplate handles redirects https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.5-Release-Notes#follow-redirects-with-testresttemplate --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dennisvang <29799340+dennisvang@users.noreply.github.com>
Upgrade dependencies for v1.17.x (FAIRDataTeam#698)
Upgrade dependencies to match current develop branch:
JwtService
class to match develop