Skip to content

Upgrade commons-pool 1.x to commons-pool2 2.12.0#2

Open
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/ticket-qw1-commons-pool2
Open

Upgrade commons-pool 1.x to commons-pool2 2.12.0#2
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/ticket-qw1-commons-pool2

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 17, 2026

Overview

Replaces the end-of-life Apache Commons Pool 1.x (commons-pool:commons-pool:1.6) with Commons Pool 2 (org.apache.commons:commons-pool2:2.12.0). Commons Pool 1.x has been unsupported since 2013 and carries known CVE exposure.

Labels: Enhancement, Status: ready-for-code-review

Changes

  • Root pom.xml – Updated <dependencyManagement> entry: changed groupId, artifactId, and version from commons-pool:commons-pool:1.6org.apache.commons:commons-pool2:2.12.0.
  • admin/broadleaf-open-admin-platform/pom.xml – Updated the module-level dependency reference to match the new coordinates.
  • SandBoxConnection.java – Migrated the GenericObjectPool import from org.apache.commons.pool.impl to org.apache.commons.pool2.impl. No behavioral changes; the returnObject() call on close() is API-compatible.

Verified via mvn compile and mvn dependency:tree that:

  • The admin module compiles cleanly against pool2
  • No commons-pool 1.x artifact remains in the dependency tree

Human Review Checklist

  • Raw type usageSandBoxConnection uses GenericObjectPool without a type parameter (raw type). This compiles with an unchecked warning but is functionally correct. Consider whether it should be parameterized as GenericObjectPool<Connection> in a follow-up.
  • Pool instantiation sites – Verify that any Spring XML or Java config that constructs the GenericObjectPool passed into SandBoxConnection is also compatible with pool2 (e.g., no use of the removed GenericObjectPool.Config class).
  • Transitive dependencies – Confirm no other module or transitive dependency re-introduces commons-pool 1.x in a full mvn dependency:tree across all modules.

Link to Devin session: https://app.devin.ai/sessions/b3253ade478546bea3194f4267ac6c9d
Requested by: @Colhodm


Open with Devin

- Replace commons-pool:commons-pool:1.6 with org.apache.commons:commons-pool2:2.12.0 in root pom.xml dependency management
- Update dependency reference in admin/broadleaf-open-admin-platform/pom.xml
- Migrate GenericObjectPool import from org.apache.commons.pool.impl to org.apache.commons.pool2.impl in SandBoxConnection.java

Co-Authored-By: Arjun Mishra <arjunsaxmishra@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

devin-ai-integration Bot added a commit that referenced this pull request Apr 17, 2026
…s args, add @TestMethodOrder/@order

- Issue #1: Remove unused Method parameter from CustomerPhoneControllerTest.setupCustomerId()
  to prevent JUnit 5 ParameterResolutionException
- Issue #2: Swap assertEquals argument order from TestNG convention (actual, expected)
  to JUnit 5 convention (expected, actual) in RollbackTest, SystemPropertiesTest, WorkflowTest
- Issue #3: Add @TestMethodOrder(MethodOrderer.OrderAnnotation.class) and @order(N) annotations
  to 21 test classes with execution order dependencies to preserve test method ordering
- Use fully qualified @org.junit.jupiter.api.Order where it conflicts with domain Order class

Co-Authored-By: Arjun Mishra <arjunsaxmishra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant