[
https://issues.apache.org/jira/browse/HDFS-6540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032202#comment-14032202
]
Gera Shegalov commented on HDFS-6540:
-------------------------------------
This issue seems to apply only to branch-2.4. We should change target version
to 2.4.1.
It's cumbersome to define a regex for usernames. For example, usernames must
not start with '-' but may contain a '.' . In order to avoid dealing with this,
you can paste the value of {{System.getProperty("user.name")}} for this
component of regex.
{code}
"([d\\-])([rwx\\-]{9})\\s*(-|\\d+)\\s*" + System.getProperty("user.name") +
"\\s*([a-zA-Z_0-9\\-]+)\\s*(\\d+)\\s*(\\d+)\\s*([\b/]+)"
{code}
> TestOfflineImageViewer.outputOfLSVisitor fails for certain usernames
> --------------------------------------------------------------------
>
> Key: HDFS-6540
> URL: https://issues.apache.org/jira/browse/HDFS-6540
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.4.0
> Reporter: Sangjin Lee
> Assignee: Sangjin Lee
> Attachments: HDFS-6540.patch
>
>
> TestOfflineImageViewer.outputOfLSVisitor() fails if the username contains "-"
> (dash). A dash is a valid character in a username.
--
This message was sent by Atlassian JIRA
(v6.2#6252)