hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11677) Add cookie flags for logs and static contexts
Date Mon, 23 Nov 2015 11:00:13 GMT

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

Hudson commented on HADOOP-11677:
---------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2568 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2568/])
HADOOP-11677. Add cookie flags for logs and static contexts. Contributed (wheat9: rev 611aa77f750986190a94ee88d1148a05f66513d0)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java


> Add cookie flags for logs and static contexts
> ---------------------------------------------
>
>                 Key: HADOOP-11677
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11677
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: nijel
>            Assignee: nijel
>              Labels: BB2015-05-TBR
>             Fix For: 2.8.0
>
>         Attachments: 001-HADOOP-11677.patch, HADOOP-11677-2.patch, HADOOP-11677.1.patch
>
>
> In HTTPServer2.java for the default context the secure attributes are set.
> {code}
> SessionManager sm = webAppContext.getSessionHandler().getSessionManager();
>     if (sm instanceof AbstractSessionManager) {
>       AbstractSessionManager asm = (AbstractSessionManager)sm;
>       asm.setHttpOnly(true);
>       asm.setSecureCookies(true);
>     }
> {code}
> But when the contexts are created for /logs and /static, new contexts are created and
the session handler is assigned as null. 
> Here also the secure attributes needs to be set.
> Is it not done intentionally ? please give your thought
> Background 
> trying to add login action for HTTP pages. After this when security test tool is used,
it reports error for these 2 urls (/logs and /static).



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

Mime
View raw message