Skip to content

Commit a4098a1

Browse files
committed
Fix CVE caused by jetty-http introduced in spark-core
Signed-off-by: Zan Niu <[email protected]>
1 parent 05af07b commit a4098a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ task addSparkJar(type: Copy) {
224224
}
225225
// Remove the unwanted directory from jar B
226226
delete file("${jarBContents}/org/apache/spark/unused")
227-
227+
delete file("${jarBContents}/org/sparkproject/jetty/http")
228+
delete file("${jarBContents}/META-INF/maven/org.eclipse.jetty/jetty-http")
228229
// Re-compress jar B
229230
ant.zip(destfile: jarB, baseDir: jarBContents)
230231

0 commit comments

Comments
 (0)