Spring 7 and Jackson 3 update#1467
Conversation
Use accurate content type header
aaime
left a comment
There was a problem hiding this comment.
Overall looks good.
On the GeoServer side I'm also upgrading Spring security, and I've found that this PR would still build with these changes in the main pom:
+ <spring.version>7.0.2</spring.version>
+ <spring.security.version>7.0.2</spring.security.version>
Could you include them in the PR?
geowebcache/pom.xml
Outdated
| <version>${joda-time.version}</version> | ||
| </dependency> | ||
|
|
||
| <!-- Temporary: Override Jackson 2.19.0 from GeoTools with 2.20 for testing --> |
There was a problem hiding this comment.
Temporary... as in, during development, or needed for the PR to work?
There was a problem hiding this comment.
It is needed for the PR to work, otherwise version 2.19.0 is being pulled transitively.
I can remove it if we merge the geotools PR before this one, what do you think?
|
I also noticed that the changes to the seed controller, while apparently an improvement, will cause regressions on existing automation scripts. Check this test in GeoServer, already modified to pass: The POST request passes only if the client specifies the content type to be "application/json", something that should be implied by the use of layername.json. The older version of the test did not, and was getting handled by this controller method instead: I would consider reverting the changes to preserve compatibility. |
I'm looking into this, thank you for testing @aaime I tried reverting the changes in the When removing the However, two other ones are failing and I cannot figure out what's happening exactly: Note that they test an endpoint that has been marked as deprecated since 2018.. |
|
A note about the integration testing here... we need to have the 3 pull requests working as one, because they will land together. So this one needs to fit toghether with:
I did the builds, and this PR builds fine without the temporary jackson version override, indeed, once built on top of the GeoTools jackson upgrade. I've also verified that the GeoServer build works fine in the current state of this PR, no more failures. Long story short, I believe the temporary override can be removed, and it would be nice if you could verify that the 3 PRs are working in harmony on your machine too (there is no way to verify that on PRs alone, they need to land together). |
|
update: never mind, the warning is present in spring6 also I have been able to verify that the three PRs are working on my machine. I note one GWC related warning on shutdown:
|
|
OK the dependency override is removed. I have also tested the 3 PRs together:
|
|
@vuilleumierc I just rebuilt the 3 projects without problems, but the difference is worrysome. |
I rebuilt the whole thing with |
|
Merging the 3 PRs and then checking if everything is fine on the build server |
No description provided.