hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Gupta (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2424) webhdfs liststatus json does not convert to a valid xml document
Date Mon, 10 Oct 2011 18:50:29 GMT

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

Arpit Gupta commented on HDFS-2424:
-----------------------------------

Make the following request

http://localhost:50070/webhdfs/tmp?op=liststatus


Returns

{"HdfsFileStatus":[
{"accessTime":0,"blockSize":0,"group":"supergroup","isDir":true,"len":0,"localName":"some_name","modificationTime":1318223419779,"owner":"some_user","permission":"755","replication":0},
]}


Try to convert this response into a valid xml document leads to an exception saying there
is no root element. As a user using these API's it would be best if we make sure one can create
a valid xml document from the response


The following exception is thrown.

org.xml.sax.SAXParseException: The markup in the document following the root element must
be well-formed.
	
                
> webhdfs liststatus json does not convert to a valid xml document
> ----------------------------------------------------------------
>
>                 Key: HDFS-2424
>                 URL: https://issues.apache.org/jira/browse/HDFS-2424
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>


--
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

        

Mime
View raw message