Repository: knox Updated Branches: refs/heads/master 3dc4efb8f -> 1bcfe47aa
KNOX-930 - ScopingCookies Feature Logging to Much Project: http://git-wip-us.apache.org/repos/asf/knox/repo Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/1bcfe47a Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/1bcfe47a Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/1bcfe47a Branch: refs/heads/master Commit: 1bcfe47aa3b8f69f92ccd21789025b4806c6fd7d Parents: 3dc4efb Author: Larry McCay <[email protected]> Authored: Mon May 1 15:20:32 2017 -0400 Committer: Larry McCay <[email protected]> Committed: Mon May 1 15:20:32 2017 -0400 ---------------------------------------------------------------------- .../org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/knox/blob/1bcfe47a/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java ---------------------------------------------------------------------- diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java b/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java index 3084d8f..cd60cb4 100644 --- a/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java +++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java @@ -278,6 +278,9 @@ public class GatewayConfigImpl extends Configuration implements GatewayConfig { setDefaultGlobalRulesServices(); initGatewayHomeDir( lastFileUrl ); + + // log whether the scoping cookies to the gateway.path feature is enabled + log.cookieScopingFeatureEnabled(isCookieScopingToPathEnabled()); } private void setDefaultGlobalRulesServices() { @@ -811,7 +814,6 @@ public class GatewayConfigImpl extends Configuration implements GatewayConfig { public boolean isCookieScopingToPathEnabled() { final boolean result = Boolean.parseBoolean(get(COOKIE_SCOPING_ENABLED, Boolean.toString(DEFAULT_COOKIE_SCOPING_FEATURE_ENABLED))); - log.cookieScopingFeatureEnabled(result); return result; }
