[ 
https://issues.apache.org/jira/browse/HADOOP-11350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235161#comment-14235161
 ] 

Haohui Mai commented on HADOOP-11350:
-------------------------------------

Thanks for working on this. The patch looks good.

{code}
+  /** Test the echo map servlet that uses getParameterMap. */
+  @Test public void testLongHeader() throws Exception {
+    URL url = new URL(baseUrl, "/longheader");
+    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+    StringBuilder sb = new StringBuilder();
+    for (int i = 0 ; i < 63 * 1024; i++) {
+      sb.append("a");
+    }
+    conn.setRequestProperty("longheader", sb.toString());
+    assertEquals(HttpURLConnection.HTTP_OK, conn.getResponseCode());
+  }
+
{code}

Maybe the test case functions should be moved to {{HttpServerFunctionalTest}} 
so that they can be used by both {{TestHttpServer}} and {{TestSSLHttpServer}}.

> HTTP Error 413 full HEAD if using kerberos authentication for HTTPS urls
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-11350
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11350
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.6.0
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-11350.patch, HADOOP-11350.patch
>
>
> {code}
> curl -k  -vvv -i -L --negotiate -u : https://<servername>:50070
> < HTTP/1.1 413 FULL head
> HTTP/1.1 413 FULL head
> < Connection: close
> Connection: close
> < Server: Jetty(6.1.26)
> Server: Jetty(6.1.26)
> {code}
> For some users, the spnego token too large for the default header buffer used 
> by Jetty. 
> Though the issue is fixed for HTTP connections (via HADOOP-8816), HTTPS 
> connections needs to be fixed as well. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to