cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7347] Adjusting the pattern to capture Swagger UI 3.0.x resources as well
Date Mon, 24 Apr 2017 16:14:39 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f3304a89a -> 59cab46f4


[CXF-7347] Adjusting the pattern to capture Swagger UI 3.0.x resources as well


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/59cab46f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/59cab46f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/59cab46f

Branch: refs/heads/master
Commit: 59cab46f45733b07b1b90c4510d4466d97447323
Parents: f3304a8
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Apr 24 17:14:22 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Apr 24 17:14:22 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/59cab46f/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
index 3a92735..fd57b64 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
@@ -443,7 +443,10 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
     @Priority(Priorities.USER)
     protected static class SwaggerUIResourceFilter implements ContainerRequestFilter {
         private static final Pattern PATTERN =
-            Pattern.compile(".*[.]js|/css/.*|/images/.*|/lib/.*|.*ico|/fonts/.*");
+            Pattern.compile(
+                  ".*js|.*gz|.*map|oauth2*[.]html|.*png|.*css|.*ico|"
+                  + "/css/.*|/images/.*|/lib/.*|/fonts/.*"
+            );
 
         @Override
         public void filter(ContainerRequestContext rc) throws IOException {


Mime
View raw message