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 "WangYuanben (Jira)" <ji...@apache.org> on 2023/04/12 15:51:00 UTC

[jira] [Created] (HDFS-16977) Forbid assigned characters in pathname when new file or directory is created.

WangYuanben created HDFS-16977:
----------------------------------

             Summary: Forbid assigned characters in pathname when new file or directory is created.
                 Key: HDFS-16977
                 URL: https://issues.apache.org/jira/browse/HDFS-16977
             Project: Hadoop HDFS
          Issue Type: New Feature
          Components: dfsclient, namenode
    Affects Versions: 3.3.4
            Reporter: WangYuanben


Some pathnames which contains special character(s) may lead to unexpected results. For example, there is a file named "/foo/file*" in my cluster, created by "DistributedFileSystem.create(new Path("/foo/file*"))". When I want to remove it, I type in "hadoop fs -rm /foo/file*" in shell. However, I remove all the files with the prefix of "/foo/file*" unexpectedly. There are also some other characters just like '*', such as ' ', '|', '&', etc.

Therefore, it's necessary to restrict the occurrence of these characters in pathname. A simple but effective way is to forbid assigned characters in pathname when new file or directory is created.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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