Skip to content

Commit

Permalink
Upgrade swagger-ui version for CVE-2019-17495 (#7902)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangfu0 committed Dec 14, 2021
1 parent 9dd1b41 commit 1dfbf1d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ org.quartz-scheduler:quartz:2.3.2
org.roaringbitmap:RoaringBitmap:0.9.22
org.roaringbitmap:shims:0.9.22
org.typelevel:macro-compat_2.12:1.1.1
org.webjars:swagger-ui:3.18.2
org.webjars:swagger-ui:3.23.11
org.wildfly.openssl:wildfly-openssl:1.0.7.Final
org.xerial.larray:larray-buffer:0.4.1
org.xerial.larray:larray-mmap:0.4.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void setupSwagger() {
_httpServer.getServerConfiguration().addHttpHandler(httpHandler, "/api/", "/help/");

URL swaggerDistLocation =
BrokerAdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.18.2/");
BrokerAdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.23.11/");
CLStaticHttpHandler swaggerDist = new CLStaticHttpHandler(new URLClassLoader(new URL[]{swaggerDistLocation}));
_httpServer.getServerConfiguration().addHttpHandler(swaggerDist, "/swaggerui-dist/");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void setupSwagger(HttpServer httpServer) {
httpServer.getServerConfiguration().addHttpHandler(apiStaticHttpHandler, "/api/");
httpServer.getServerConfiguration().addHttpHandler(apiStaticHttpHandler, "/help/");

URL swaggerDistLocation = loader.getResource("META-INF/resources/webjars/swagger-ui/3.18.2/");
URL swaggerDistLocation = loader.getResource("META-INF/resources/webjars/swagger-ui/3.23.11/");
CLStaticHttpHandler swaggerDist = new CLStaticHttpHandler(new URLClassLoader(new URL[]{swaggerDistLocation}));
httpServer.getServerConfiguration().addHttpHandler(swaggerDist, "/swaggerui-dist/");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void setupSwagger() {
_httpServer.getServerConfiguration().addHttpHandler(httpHandler, "/api/", "/help/");

URL swaggerDistLocation =
MinionAdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.18.2/");
MinionAdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.23.11/");
CLStaticHttpHandler swaggerDist = new CLStaticHttpHandler(new URLClassLoader(new URL[]{swaggerDistLocation}));
_httpServer.getServerConfiguration().addHttpHandler(swaggerDist, "/swaggerui-dist/");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void setupSwagger(HttpServer httpServer) {
httpServer.getServerConfiguration().addHttpHandler(staticHttpHandler, "/help/");

URL swaggerDistLocation =
AdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.18.2/");
AdminApiApplication.class.getClassLoader().getResource("META-INF/resources/webjars/swagger-ui/3.23.11/");
CLStaticHttpHandler swaggerDist = new CLStaticHttpHandler(new URLClassLoader(new URL[]{swaggerDistLocation}));
httpServer.getServerConfiguration().addHttpHandler(swaggerDist, "/swaggerui-dist/");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void setupSwagger() {
_httpServer.getServerConfiguration().addHttpHandler(httpHandler, "/api/", "/help/");

URL swaggerDistLocation = PinotServiceManagerAdminApiApplication.class.getClassLoader()
.getResource("META-INF/resources/webjars/swagger-ui/3.18.2/");
.getResource("META-INF/resources/webjars/swagger-ui/3.23.11/");
CLStaticHttpHandler swaggerDist = new CLStaticHttpHandler(new URLClassLoader(new URL[]{swaggerDistLocation}));
_httpServer.getServerConfiguration().addHttpHandler(swaggerDist, "/swaggerui-dist/");
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@
<dependency>
<groupId>org.webjars</groupId>
<artifactId>swagger-ui</artifactId>
<version>3.18.2</version>
<version>3.23.11</version>
</dependency>
<dependency>
<groupId>com.clearspring.analytics</groupId>
Expand Down

0 comments on commit 1dfbf1d

Please sign in to comment.