Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8FF2DC9C for ; Sat, 10 Nov 2012 13:05:17 +0000 (UTC) Received: (qmail 57509 invoked by uid 500); 10 Nov 2012 13:05:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 56968 invoked by uid 500); 10 Nov 2012 13:05:16 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 56906 invoked by uid 99); 10 Nov 2012 13:05:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 13:05:14 +0000 Date: Sat, 10 Nov 2012 13:05:14 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1142931157.96219.1352552714937.JavaMail.jiratomcat@arcas> In-Reply-To: <974294137.83700.1352326692235.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4162) Some malformed and unquoted HTML strings are returned from datanode web ui MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494659#comment-13494659 ] Hudson commented on HDFS-4162: ------------------------------ Integrated in Hadoop-Hdfs-trunk #1222 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1222/]) HDFS-4162. Some malformed and unquoted HTML strings are returned from datanode web ui. Contributed by Darek Dagit. (Revision 1407556) Result = SUCCESS suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1407556 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/JspHelper.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DatanodeJspHelper.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/common/TestJspHelper.java > Some malformed and unquoted HTML strings are returned from datanode web ui > -------------------------------------------------------------------------- > > Key: HDFS-4162 > URL: https://issues.apache.org/jira/browse/HDFS-4162 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Affects Versions: 0.23.4 > Reporter: Derek Dagit > Assignee: Derek Dagit > Priority: Minor > Fix For: 3.0.0, 2.0.3-alpha, 0.23.5 > > Attachments: HDFS-4162-branch-0.23.patch, HDFS-4162.patch > > > When browsing to the datanode at /browseDirectory.jsp, if a path with HTML characters is requested, the resulting error page echos back the input unquoted. > Example: > http://localhost:50075/browseDirectory.jsp?dir=/&go=go&namenodeInfoPort=50070&nnaddr=localhost%3A9000 > Writes an input element as part of the response: > > - The value of the "value" attribute is not quoted. > - An = must follow the "id" attribute name. > - Element "input" should have a closing tag. > The output should be something like: > > In addition, if one creates a directory: > hdfs dfs -put '/some/path/to/' > Then browsing to the parent of directory '' prints unquoted HTML in the directory names. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira