Vojtech Szocs has posted comments on this change.

Change subject: restapi: CSRF protection filter
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/29681/1/backend/manager/modules/restapi/interface/common/jaxrs/src/main/java/org/ovirt/engine/api/common/security/CSRFProtectionFilter.java
File 
backend/manager/modules/restapi/interface/common/jaxrs/src/main/java/org/ovirt/engine/api/common/security/CSRFProtectionFilter.java:

Line 104:     private void doFilter(HttpServletRequest request, 
HttpServletResponse response, FilterChain chain)
Line 105:             throws IOException, ServletException {
Line 106:         // If protection is globally disabled then we don't need to 
do anything else, jump directly to the next filter
Line 107:         // in the chain:
Line 108:         boolean enabled = 
Config.getValue(ConfigValues.CSRFProtection);
> It can't be placed in "init", because "init" may run before the configurati
OK, I wasn't aware of that, thanks for clarification.
Line 109:         if (!enabled) {
Line 110:             chain.doFilter(request, response);
Line 111:             return;
Line 112:         }


-- 
To view, visit http://gerrit.ovirt.org/29681
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5700192b62e514091c9f29910596f312c068c5b2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Vojtech Szocs <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to