[
https://issues.apache.org/jira/browse/MESOS-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055460#comment-15055460
]
haosdent commented on MESOS-2210:
---------------------------------
{noformat}
if (role == ".") {
return Error("Role name '.' is invalid.");
} else if (role == "..") {
return Error("Role name '..' is invalid.");
} else if (strings::startsWith(role, "-")) {
return Error("Role name '" + role + "' is invalid "
"because it starts with a dash.");
}
// \x09 is horizontal tab (whitespace);
// \x0a is line feed (whitespace);
// \x0b is vertical tab (whitespace);
// \x0c is form feed (whitespace);
// \x0d is carriage return (whitespace);
// \x20 is space (whitespace);
// \x2f is slash ('/');
// \x7f is backspace (del);
{noformat}
> Disallow special characters in role.
> ------------------------------------
>
> Key: MESOS-2210
> URL: https://issues.apache.org/jira/browse/MESOS-2210
> Project: Mesos
> Issue Type: Task
> Reporter: Jie Yu
> Assignee: haosdent
> Labels: mesosphere, newbie, persistent-volumes
>
> As we introduce persistent volumes in MESOS-1524, we will use roles as
> directory names on the slave (https://reviews.apache.org/r/28562/). As a
> result, the master should disallow special characters (like space and slash)
> in role.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)