hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-2424) webhdfs liststatus json does not convert to a valid xml document
Date Thu, 13 Oct 2011 22:02:12 GMT

     [ https://issues.apache.org/jira/browse/HDFS-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HDFS-2424:
-----------------------------------------

    Assignee: Tsz Wo (Nicholas), SZE
      Status: Patch Available  (was: Open)

JSON output after the patch
{noformat}
{"HdfsFileStatuses":{"HdfsFileStatus":[
{"accessTime":1318445297972,"blockSize":33554432,"group":"supergroup","isDir":false,"len":3003,"localName":"a.patch","modificationTime":1318445297972,"owner":"szetszwo","permission":"644","replication":1},
{"accessTime":1318447291566,"blockSize":33554432,"group":"supergroup","isDir":false,"len":4972,"localName":"a2.patch","modificationTime":1318447291566,"owner":"szetszwo","permission":"644","replication":3}
]}}
{noformat}
The corresponding XML
{noformat}
<?xml version="1.0" encoding="UTF-8" ?>
	<HdfsFileStatuses>
		<HdfsFileStatus>
			<accessTime>1318445297972</accessTime>
			<blockSize>33554432</blockSize>
			<group>supergroup</group>
			<isDir>false</isDir>
			<len>3003</len>
			<localName>a.patch</localName>
			<modificationTime>1318445297972</modificationTime>
			<owner>szetszwo</owner>
			<permission>644</permission>
			<replication>1</replication>
		</HdfsFileStatus>
		<HdfsFileStatus>
			<accessTime>1318447291566</accessTime>
			<blockSize>33554432</blockSize>
			<group>supergroup</group>
			<isDir>false</isDir>
			<len>4972</len>
			<localName>a2.patch</localName>
			<modificationTime>1318447291566</modificationTime>
			<owner>szetszwo</owner>
			<permission>644</permission>
			<replication>3</replication>
		</HdfsFileStatus>
	</HdfsFileStatuses>
{noformat}
                
> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h2424_20111013.patch, h2424_20111013_0.20s.patch
>
>


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