Closed David-Noble-at-work closed 5 years ago
I don't see any code using org.apache.commons.validator
$:~/github/azure/azure-cosmosdb-java$ grep "org.apache.commons.validator" -r .
$:~/github/azure/azure-cosmosdb-java$
Does any code use it? if not maybe we can remove that instead.
Root cause: com.microsoft.azure.cosmosdb.internal.directconnectivity.EndpointMock was using commons-collections, not commons-collections4 which is what we use elsewhere. All is well after changing this EndpointMock import from:
import org.apache.commons.collections.map.HashedMap;
to:
import org.apache.commons.collections4.map.HashedMap;
I will port this change in my current working branch to PR #137.
The fix to this issue is now being tested in PR#137.
We have benchmark, sample, and test code that utilizes
commons-validator:commons-validator:1.6
. This dependency is brought into our build system here:Notice that
commons-validator
depends oncommons-beanutils:1.9.2
and that Snyk reports this version ofcommons-beanutils
contains a security vulnerability:A fix to this issue is under development but is not yet released:
https://snyk.io/vuln/SNYK-JAVA-COMMONSBEANUTILS-30077
We should update our dependencies as soon as the fix is available. Here is the full list of direct dependencies on
commons-validator
reported by maven.