falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject falcon git commit: Falcon webUI returns 413
Date Thu, 31 Mar 2016 21:51:03 GMT
Repository: falcon
Updated Branches:
  refs/heads/master 01fe388ad -> 55d86eb22


Falcon webUI returns 413

 (Full head - Request entity too large) error when TLS is enabled in a secure cluster with
AD integration)

Fix is to duplicate the SocketConnector change to increase header and request buffer for Jetty
based on startup properties

Author: Venkat Ranganathan <venkat@hortonworks.com>

Reviewers: "Ajay Yadava <ajayyadava@apache.org>"

Closes #81 from vrangan/master


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

Branch: refs/heads/master
Commit: 55d86eb22440016dc30fc740dd016998abbdf79c
Parents: 01fe388
Author: Venkat Ranganathan <venkat@hortonworks.com>
Authored: Thu Mar 31 14:50:56 2016 -0700
Committer: bvellanki <bvellanki@hortonworks.com>
Committed: Thu Mar 31 14:50:56 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/falcon/util/SecureEmbeddedServer.java     | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/55d86eb2/prism/src/main/java/org/apache/falcon/util/SecureEmbeddedServer.java
----------------------------------------------------------------------
diff --git a/prism/src/main/java/org/apache/falcon/util/SecureEmbeddedServer.java b/prism/src/main/java/org/apache/falcon/util/SecureEmbeddedServer.java
index 8e9ef52..2e318fd 100644
--- a/prism/src/main/java/org/apache/falcon/util/SecureEmbeddedServer.java
+++ b/prism/src/main/java/org/apache/falcon/util/SecureEmbeddedServer.java
@@ -48,6 +48,13 @@ public class SecureEmbeddedServer extends EmbeddedServer {
         connector.setPassword(properties.getProperty("password",
                 System.getProperty("password", "falcon-prism-passwd")));
         connector.setWantClientAuth(true);
+
+        // this is to enable large header sizes when Kerberos is enabled with AD
+        final Integer bufferSize = Integer.valueOf(StartupProperties.get().getProperty(
+                "falcon.jetty.request.buffer.size", "16192"));
+        connector.setHeaderBufferSize(bufferSize);
+        connector.setRequestBufferSize(bufferSize);
+
         return connector;
     }
 }


Mime
View raw message