You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Ahmed Hussein (Jira)" <ji...@apache.org> on 2020/10/13 01:27:00 UTC

[jira] [Created] (HDFS-15628) https throws NPE if a file is a symlink

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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org