Skip to content

Commit

Permalink
Fix CVE caused by jetty-http introduced in spark-core
Browse files Browse the repository at this point in the history
Signed-off-by: Zan Niu <[email protected]>
  • Loading branch information
zane-neo committed Jan 31, 2025
1 parent 05af07b commit a4098a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ task addSparkJar(type: Copy) {
}
// Remove the unwanted directory from jar B
delete file("${jarBContents}/org/apache/spark/unused")

delete file("${jarBContents}/org/sparkproject/jetty/http")
delete file("${jarBContents}/META-INF/maven/org.eclipse.jetty/jetty-http")
// Re-compress jar B
ant.zip(destfile: jarB, baseDir: jarBContents)

Expand Down

0 comments on commit a4098a1

Please sign in to comment.