hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Chanan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13346) DelegationTokenAuthenticationHandler writes via closed writer
Date Thu, 07 Jul 2016 00:18:11 GMT
Gregory Chanan created HADOOP-13346:

             Summary: DelegationTokenAuthenticationHandler writes via closed writer
                 Key: HADOOP-13346
                 URL: https://issues.apache.org/jira/browse/HADOOP-13346
             Project: Hadoop Common
          Issue Type: Bug
          Components: security
            Reporter: Gregory Chanan
            Priority: Minor

By default, jackson's ObjectMapper closes the writer after writing, so in the following code
ObjectMapper jsonMapper = new ObjectMapper();
jsonMapper.writeValue(writer, map);

writer.write actually writes to a closed stream.  This doesn't seem to cause a problem with
the version of jetty that hadoop uses (those just ignore closes), but causes problems on later
verisons of jetty -- I hit this on jetty 8 while implementing SOLR-9200.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org

View raw message