Ahmed Hussein created HDFS-15628:
------------------------------------

             Summary: https throws NPE if a file is a symlink
                 Key: HDFS-15628
                 URL: https://issues.apache.org/jira/browse/HDFS-15628
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: fs, httpfs
            Reporter: Ahmed Hussein
            Assignee: Ahmed Hussein


If a directory containing a symlink is listed, the client (WebHfdsFileSystem) 
blows up with a NPE. If {{type}} is {{SYMLINK}}, there must be {{symlink}} 
field whose value is the link target string. HttpFS returns a response without 
{{symlink}} filed. {{WebHfdsFileSystem}} assumes it is there for a symlink and 
blindly tries to parse it, causing NPE.

This is not an issue if the destination cluster does not have symlinks enabled.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to