Description
WebImageViewer will get the following error if there is an empty directory is in /user/root/.
[root@trunk ~]# hdfs dfs -ls -R webhdfs://localhost:5978/user/root/
ls: Unexpected HTTP response: code=404 != 200, op=LISTSTATUS, message=Not Found
The reason of the error is that WebImageViewer returns 404 (not found) if LISTSTATUS to an empty directory. It should return 200 (ok) and empty FileStatuses.