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 1F65991C7 for ; Wed, 5 Oct 2011 20:18:51 +0000 (UTC) Received: (qmail 97218 invoked by uid 500); 5 Oct 2011 19:18:51 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 97179 invoked by uid 500); 5 Oct 2011 19:18:51 -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 97171 invoked by uid 99); 5 Oct 2011 19:18:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 19:18:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 19:18:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B1AAE2A7487 for ; Wed, 5 Oct 2011 19:18:29 +0000 (UTC) Date: Wed, 5 Oct 2011 19:18:29 +0000 (UTC) From: "Arpit Gupta (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1375370584.377.1317842309729.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <126432142.354.1317841950756.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2404) webhdfs liststatus json response is not correct 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-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121378#comment-13121378 ] Arpit Gupta commented on HDFS-2404: ----------------------------------- curl -i "http://HOST:50070/webhdfs/?op=LISTSTATUS" returns {code} {"HdfsFileStatus[]":[ {"HdfsFileStatus":{"accessTime":0,"blockSize":0,"group":"hadoop","isDir":true,"len":0,"localName":"hbase","modificationTime":1317832608532,"owner":"hrt_hdfs","permission":"700","replication":0}}, {"HdfsFileStatus":{"accessTime":0,"blockSize":0,"group":"hadoop","isDir":true,"len":0,"localName":"mapred","modificationTime":1317832616195,"owner":"mapred","permission":"755","replication":0}}, {code} This when converted to xml is something like {code} 0 0 hadoop true 0 hbase 1317832608532 hrt_hdfs 700 0 0 0 hadoop true 0 mapred 1317832616195 mapred 755 0 {code} We should instead return something like {code} {"HdfsFileStatus":[ {"accessTime":0,"blockSize":0,"group":"hadoop","isDir":true,"len":0,"localName":"hbase","modificationTime":1317832608532,"owner":"hrt_hdfs","permission":"700","replication":0}, {"accessTime":0,"blockSize":0,"group":"hadoop","isDir":true,"len":0,"localName":"mapred","modificationTime":1317832616195,"owner":"mapred","permission":"755","replication":0}, {"accessTime":0,"blockSize":0,"group":"supergroup","isDir":true,"len":0,"localName":"tmp","modificationTime":1317832565771,"owner":"hdfs","permission":"777","replication":0}, {"accessTime":0,"blockSize":0,"group":"supergroup","isDir":true,"len":0,"localName":"user","modificationTime":1317832647984,"owner":"hdfs","permission":"755","replication":0}]} {code} which maps to xml like {code} 0 0 hadoop true 0 hbase 1317832608532 hrt_hdfs 700 0 0 0 hadoop true 0 mapred 1317832616195 mapred 755 0 {code} > webhdfs liststatus json response is not correct > ----------------------------------------------- > > Key: HDFS-2404 > URL: https://issues.apache.org/jira/browse/HDFS-2404 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.20.205.0 > Reporter: Arpit Gupta > Assignee: Suresh Srinivas > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira