GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] Replace commons-io by adangel · Pull Request #3968 · pmd/pmd

Conversation

@adangel

@adangel adangel commented May 13, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Describe the PR

  • Removes the old dependency commons-io 2.6 and provide drop-in replacements in our own IOUtil.
  • This fixes the possible security issue, that is also mentioned in the last release report from sonatype: https://sbom.lift.sonatype.com/report/T1-a0368c8f29fdaa555824-1b7e275cc8607e-1651305084-d9e3a9499436490b8797b8a1babecb91
  • Note: on PMD 7 we could think about going back to the latest version of commons-io. But while we keep synchronizing the two branches, I think it's wait with that until we separate the development.

Related issues

  • Fixes [core] common-io path traversal vulnerability (CVE-2021-29425) #3942

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)
  • Prepare merge into PMD 7: [core] Replace commons-io (pmd7 merge) #3969

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

filipponova reacted with rocket emoji
All reactions
  • 🚀 1 reaction
adangel added 11 commits May 13, 2022 12:03
@adangel
[core] Add missing methods to IOUtil as replacement for IOUtils
4944177
@adangel
[all] Remove dependency to commons-io
753cb49
@adangel
[core] Replace IOUtils with IOUtil
2887fe3
@adangel
Update build-tools to 18-SNAPSHOT
abfc463
@adangel
Replace IOUtils with IOUtil
a4ebb66
plsql, xml, apex, html, javascript, scala
@adangel
[dist] Replace IOUtils with IOUtil
a1922c5
@adangel
[doc] Replace IOUtils with IOUtil
bef7eed
@adangel
Fix tests under Windows
cfacfbb
@adangel
[doc] Update release notes (pmd#3942)
1c90968
@adangel
Fix tests under Windows
8addd05
@adangel
[core] Fix bug in IOUtil.fromReader
a9219b7
@adangel adangel added this to the 6.46.0 milestone May 13, 2022
@adangel adangel mentioned this pull request May 13, 2022
[core] Replace commons-io (pmd7 merge) #3969
Merged
@ghost

ghost commented May 13, 2022 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel
Merge branch 'master' into replace-commons-io
8fc4e7e
oowekyala
oowekyala reviewed May 14, 2022
View reviewed changes

@oowekyala oowekyala left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for doing this!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pmd-core/src/main/java/net/sourceforge/pmd/util/IOUtil.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

adangel and others added 2 commits May 20, 2022 08:51
@adangel @oowekyala
Update pmd-core/src/main/java/net/sourceforge/pmd/util/IOUtil.java
c53a64c
Co-authored-by: Clément Fournier <[email protected]>
@adangel
Merge branch 'master' into replace-commons-io
8e66fc6
adangel added a commit to adangel/pmd that referenced this pull request May 26, 2022
@adangel
Merge pull request pmd#3968 from adangel:replace-commons-io
67629e1
[core] Replace commons-io pmd#3968
@adangel
adangel merged commit 51fa5e4 into pmd:master May 26, 2022
@adangel
adangel deleted the replace-commons-io branch May 26, 2022 13:47
This was referenced Jun 2, 2022
[cli] All files are analyzed despite parameter --file-list #3999
Closed
[core] Fix current sonatype lift issues #4005
Merged
@adangel adangel mentioned this pull request Oct 3, 2026
[core] chore: Replace most of IOUtil with commons-io #7139
Merged
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@oowekyala oowekyala oowekyala left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.46.0

Development

Successfully merging this pull request may close these issues.

[core] common-io path traversal vulnerability (CVE-2021-29425)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@adangel @oowekyala
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.