← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1233502] Re: security group name validation failure yields incorrect message

 

Solved (see bug 1224576) in Kilo release.

** Changed in: horizon
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1233502

Title:
  security group name validation failure yields incorrect message

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  When I attempt to create a security group named '@', this fails,
  yielding an error message reading:

  "The string may only contain ASCII characters and numbers."

  This message is misleading: '@' is a perfectly valid ASCII character (it has ASCII value 0x40).
  Spaces are also ASCII, but validate_slug rejects them, too.

  Since this message is shown when validate_slug rejects the user-
  entered value, a more appropriate message might be:

  "The security group name must contain only letters, numbers,
  underscores and hyphens."

  ... this text having been blatantly ripped off the Django
  documentation on validate_slug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1233502/+subscriptions