metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject [03/21] metron git commit: METRON-1390: Swagger UI for "Web Security Config" Controller needs request method (MohanDV via mmiklavc) closes apache/metron#889
Date Thu, 25 Jan 2018 14:05:26 GMT
METRON-1390: Swagger UI for "Web Security Config" Controller needs request method (MohanDV
via mmiklavc) closes apache/metron#889


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

Branch: refs/heads/feature/METRON-1211-extensions-parsers-gradual
Commit: 43243758cedee803ef610b74b4f42b4ec1d7a1c6
Parents: 6f869ae
Author: MohanDV <mohan.dv@gmail.com>
Authored: Thu Jan 11 07:56:55 2018 -0700
Committer: Michael Miklavcic <michael.miklavcic@gmail.com>
Committed: Thu Jan 11 07:56:55 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/metron/rest/config/WebSecurityConfig.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metron/blob/43243758/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/WebSecurityConfig.java
----------------------------------------------------------------------
diff --git a/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/WebSecurityConfig.java
b/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/WebSecurityConfig.java
index 8310df1..36846de 100644
--- a/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/WebSecurityConfig.java
+++ b/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/WebSecurityConfig.java
@@ -33,6 +33,7 @@ import org.springframework.security.web.authentication.logout.HttpStatusReturnin
 import org.springframework.security.web.csrf.CookieCsrfTokenRepository;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 
 import javax.sql.DataSource;
 import java.util.Arrays;
@@ -47,7 +48,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
     @Autowired
     private Environment environment;
 
-    @RequestMapping({"/login", "/logout", "/sensors", "/sensors*/**"})
+    @RequestMapping(value = {"/login", "/logout", "/sensors", "/sensors*/**"}, method = RequestMethod.GET)
     public String handleNGRequests() {
         return "forward:/index.html";
     }


Mime
View raw message