[ 
https://issues.apache.org/jira/browse/AMBARI-13158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14907286#comment-14907286
 ] 

Newton Alex commented on AMBARI-13158:
--------------------------------------

Space is a valid filename character in Linux

<quote>
File names in Linux can contain any characters other than (1) a forward slash ( 
/ ), which is reserved for use as the name of the root directory (i.e., the 
directory that contains all other directories and files) and as a directory 
separator, and (2) the null character (which is used to terminate segments of 
text). Spaces are permitted, although they are best avoided because they can be 
incompatible with legacy software in some cases.
</quote>

Source: http://www.linfo.org/file_name.html

So should we be fixing the isValidDir() function instead?

> error message is not accurate when a directory field value has a space 
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-13158
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13158
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: jun aoki
>            Assignee: jun aoki
>            Priority: Trivial
>         Attachments: AMBARI-13158.patch, screenshot-1.png
>
>
> when, for example, dfs.datanode.data.dir.mount.file field in Configs tab has 
> a file path with a space, it warns "Must be a slash or drive at the start", 
> which should be "Wrong path " or something, or maybe a path with space is OK 
> too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to