Skip to content

S-135066: Upgrades commons lang to address vulnerabilities#73

Open
isaacsatish wants to merge 2 commits into
versionone:masterfrom
isaacsatish:S-135066-upgrade-commons-lang
Open

S-135066: Upgrades commons lang to address vulnerabilities#73
isaacsatish wants to merge 2 commits into
versionone:masterfrom
isaacsatish:S-135066-upgrade-commons-lang

Conversation

@isaacsatish

Copy link
Copy Markdown

This pull request updates dependency versions and refactors the codebase to replace the deprecated org.apache.commons.lang library with org.apache.commons.lang3. It also standardizes exception handling by replacing NullArgumentException with IllegalArgumentException throughout the code. These changes improve maintainability, compatibility, and error reporting.

Dependency upgrades and modernization:

  • Updated several dependencies in pom.xml to newer versions, including httpclient, httpcore, commons-io, commons-lang3, org.json, and junit. Removed deprecated dependencies and switched to version properties for easier management. [1] [2] [3]

Refactoring for library migration:

  • Replaced all imports of org.apache.commons.lang with org.apache.commons.lang3 in source and test files, updating relevant usages (such as StringUtils, ArrayUtils, and DateUtils). [1] [2] [3] [4] [5] [6]

Exception handling improvements:

  • Replaced all uses of NullArgumentException with IllegalArgumentException for argument validation in constructors and methods, improving standardization and clarity of error messages. This includes updates in AttributeDefinition.java, Services.java, V1Configuration.java, and corresponding test assertions. [1] [2] [3] [4] [5] [6] [7]

Let me know if you have questions about any of these changes!

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