Skip to content

Remove deprecated Cookie method usage #17006

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

Merged
merged 2 commits into from
May 7, 2025
Merged

Conversation

M-Faheem-Khan
Copy link
Contributor

ISSUE: gh-16889

Removing deprecated cookie methods comment & version.

These changes partly addresses the gh-16889. To prevent review fatigue, I'll create to additional PRs.

Note: CookieMixinTests will need to be updated when the comment & version methods are removed from the Jakarta Servlet API. PR to deprecate the methods.

@M-Faheem-Khan M-Faheem-Khan changed the title [gh-16889] Remove deprecated cookie comment and version methods #16889: Remove deprecated cookie comment and version methods Apr 28, 2025
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 28, 2025
@jzheaux
Copy link
Contributor

jzheaux commented Apr 29, 2025

Hi, @M-Faheem-Khan, thanks for contributing. There appear to be several changes unrelated to the title in your PR. Can you please rebase with main and update your PR so that it only has your changes?

@M-Faheem-Khan
Copy link
Contributor Author

Done!

@rwinch rwinch self-assigned this May 6, 2025
@rwinch rwinch added in: web An issue in web modules (web, webmvc) type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels May 6, 2025
@rwinch rwinch changed the base branch from main to 6.5.x May 6, 2025 20:25
@rwinch rwinch changed the base branch from 6.5.x to main May 7, 2025 16:59
M-Faheem-Khan and others added 2 commits May 7, 2025 14:36
Remove usage of comment and verison usage

Signed-off-by: M-Faheem-Khan <[email protected]>
The test should not provide SavedCookie.class to the ObjectMapper
since this is not done in production. In particular, it provides the
type that it should be deserialized, but this must be provided in the
JSON since the type is unknown at the time of deserialization.

Issue gh-17006
@rwinch rwinch changed the title #16889: Remove deprecated cookie comment and version methods Remove deprecated Cookie method usage May 7, 2025
@rwinch
Copy link
Member

rwinch commented May 7, 2025

Thanks for the PR @M-Faheem-Khan! I've rebased on main with some cleanup around your whitespace directly made to your commit. I've also added a commit that reverts the change to how the deserialization happens in SavedCookieMixinTests since this was incorrect.

The build has been started and this PR will be merged into main as soon as it passes. Thanks again!

@rwinch rwinch added this to the 7.0.0-M1 milestone May 7, 2025
@rwinch rwinch merged commit 6118587 into spring-projects:main May 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants