spring-projects / spring-projects/spring-security

Make SpringSecurityCoreVersion.SERIAL_VERSION_UID Dynamic

Open
#5,126 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Summary

At present, SpringSecurityCoreVersion.SERIAL_VERSION_UID are statically initialized. Whenever there is a bump in version, this is a required manual code change. If missed, some tests in SpringSecurityCoreVersionTests will fail.

It would be much more convenient if SERIAL_VERSION_UID was dynamically initialized with the current versions from a properties file.

Related #5065

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with SpringSecurityCoreVersion and SpringSecurityCoreVersionTests, then locate the project's version properties file. Check how the current version is exposed and how the serial UID is initialized; done means the UID follows the current version without a manual code change and the referenced tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
release
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.