Skip to content

Removes commons-lang:2.6 from core#26105

Draft
alecharp wants to merge 11 commits intojenkinsci:masterfrom
alecharp:chore/remove-commons-lang-2.6
Draft

Removes commons-lang:2.6 from core#26105
alecharp wants to merge 11 commits intojenkinsci:masterfrom
alecharp:chore/remove-commons-lang-2.6

Conversation

@alecharp
Copy link
Member

@alecharp alecharp commented Jan 12, 2026

A follow up of #10886
Commons Lang 2.6 as a security advisory and is not maintained. Removing it from core is the best path forward.

Fixes #16404

Testing done

Build the project locally. Expecting to get test results from CI and then use the incremental version to build jenkinsci/bom.

Proposed changelog entries

  • Removes Commons Lang 2.6 library from Core

Proposed changelog category

/label developer

Proposed upgrade guidelines

N/A

Submitter checklist

  • The issue, if it exists, is well-described.
  • The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see examples). Fill in the Proposed upgrade guidelines section only if there are breaking changes or changes that may require extra steps from users during upgrade.
  • There is automated testing or an explanation as to why this change has no tests.
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadocs, as appropriate.
  • New deprecations are annotated with @Deprecated(since = "TODO") or @Deprecated(forRemoval = true, since = "TODO"), if applicable.
  • UI changes do not introduce regressions when enforcing the current default rules of Content Security Policy Plugin. In particular, new or substantially changed JavaScript is not defined inline and does not call eval to ease future introduction of Content Security Policy (CSP) directives (see documentation).
  • For dependency updates, there are links to external changelogs and, if possible, full differentials.
  • For new APIs and extension points, there is a link to at least one consumer.

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

  • There are at least two (2) approvals for the pull request and no outstanding requests for change.
  • Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
  • Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
  • Proper changelog labels are set so that the changelog can be generated automatically.
  • If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).
  • If it would make sense to backport the change to LTS, be a Bug or Improvement, and either the issue or pull request must be labeled as lts-candidate to be considered.

@comment-ops-bot comment-ops-bot bot added the developer Changes which impact plugin developers label Jan 12, 2026
@alecharp alecharp added the squash-merge-me Unclean or useless commit history, should be merged only with squash-merge label Jan 12, 2026
@MarkEWaite
Copy link
Contributor

MarkEWaite commented Jan 12, 2026

A spreadsheet of plugins that need to have commons-lang 2 removed is included in issue:

The spreadsheet is out of date. Git plugin 5.8.0 removed the commons-lang2 dependency, as one example.

@MarkEWaite MarkEWaite linked an issue Jan 12, 2026 that may be closed by this pull request
@MarkEWaite
Copy link
Contributor

There is also a suggestion for an addition to the Jenkins plugin pom file that will help avoid accidental insertion of references to commons-lang 2. The idea is described in issue:

@alecharp
Copy link
Member Author

There is also a suggestion for an addition to the Jenkins plugin pom file that will help avoid accidental insertion of references to commons-lang 2. The idea is described in issue:

I can work on that.

@alecharp
Copy link
Member Author

I cannot reproduce the test failure locally. Would it be possible to re-run the pull request build?

@alecharp alecharp closed this Jan 12, 2026
@alecharp alecharp reopened this Jan 12, 2026
@timja timja added the needs-pct-build A run through of bom is needed label Jan 13, 2026
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan for rolling this out?

Example:

  1. As there's so many plugins making this a detached plugin?
  2. Fixing the majority of the plugins in the spreadsheet
  3. Something else?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I want to see with the BOM if we have critical plugins broken with this removal. The security advisory of Commons Lang 2.6 has been out there for a longtime now and we need to stop from suffering from it.

Fixing all the plugins in the spreadsheet is not really feasible. Fixing the top 250 probably.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and with jenkinsci/plugin-pom#1338 (comment), it might go rather quickly

@mawinter69
Copy link
Contributor

A spreadsheet of plugins that need to have commons-lang 2 removed is included in issue:

The spreadsheet is out of date. Git plugin 5.8.0 removed the commons-lang2 dependency, as one example.

I updated the spreadsheet for the first 100 plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer Changes which impact plugin developers needs-pct-build A run through of bom is needed squash-merge-me Unclean or useless commit history, should be merged only with squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[JENKINS-72981] Remove Commons Lang 2 from core

4 participants