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:20:56 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes b12af728a -> 5f04f8f70


[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/5f04f8f7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5f04f8f7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5f04f8f7

Branch: refs/heads/3.1.x-fixes
Commit: 5f04f8f708f14208179ffac8e18b3e47274ab25b
Parents: b12af72
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:20:31 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/5f04f8f7/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 7dbda71..4458df5 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
@@ -442,9 +442,12 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
     @PreMatching
     @Priority(Priorities.USER)
     protected static class SwaggerUIResourceFilter implements ContainerRequestFilter {
-        private static final Pattern PATTERN = 
-            Pattern.compile(".*[.]js|/css/.*|/images/.*|/lib/.*|.*ico|/fonts/.*"); 
-        
+        private static final Pattern PATTERN =
+            Pattern.compile(
+                  ".*js|.*gz|.*map|oauth2*[.]html|.*png|.*css|.*ico|"
+                  + "/css/.*|/images/.*|/lib/.*|/fonts/.*"
+            );
+
         @Override
         public void filter(ContainerRequestContext rc) throws IOException {
             if (HttpMethod.GET.equals(rc.getRequest().getMethod())) {


Mime
View raw message