hhr293 opened a new pull request, #13748:
URL: https://github.com/apache/gluten/pull/13748

   Remove the legacy org.slf4j:slf4j-log4j12:1.7.30 test dependency from 
shims/pom.xml.
   
   The Spark profiles already provide log4j-slf4j2-impl (Log4j 2.x) for 
logging. Since SLF4J 2.x does not use SLF4J 1.x bindings, the legacy dependency 
is redundant.
   
   It also transitively pulls in log4j:log4j:1.2.17, which has known 
vulnerabilities (e.g. CVE-2019-17571 and CVE-2021-4104). Although the 
dependency is test-scoped and is not shipped in the bundle jar, Maven still 
resolves it during builds with -DskipTests, leaving the artifact in the local 
Maven repository, where security scanners flag it.
   
   Removing it does not change the logging implementation.
   
   Tested:
   - dependency:tree for the Spark 3.4, 3.5, 4.0 and 4.1 profiles shows that 
log4j:log4j:1.x and slf4j-log4j12 are no longer resolved by the shims modules 
in the default Velox build, while slf4j-api 2.x, log4j-slf4j2-impl and 
log4j-core 2.x are still present.
   - Spark40LocalTableScanStreamSuite passes.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to