Allow all printable ASCII characters in security group names
Thus far, the security group name was checked with Django's validate_slug.
Consequently, some characters like spaces (bug #1224576) and @ (bug #1233501) were forbidden.
This fix removes validate_slug and provides a less restrictive validation.
Now, all printable ASCII characters -- i.e. from 0x20 to 0x7E -- are valid.
Note that diacritics are disallowed.
On top of that the length is now checked and limited to 255 characters in accordance with Nova.
Security group forms have been factorized in one abstract base class: GroupBase.
CreateGroup and UpdateGroup subclass GroupBase in order to be more DRY.
Reviewed: https:/ /review. openstack. org/54007 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=80d9049fb6e 6c7bf5eb262612e 6ad3e8a541c051
Committed: https:/
Submitter: Jenkins
Branch: master
commit 80d9049fb6e6c7b f5eb262612e6ad3 e8a541c051
Author: Romain Hardouin <email address hidden>
Date: Thu Apr 3 23:52:13 2014 +0200
Allow all printable ASCII characters in security group names
Thus far, the security group name was checked with Django's validate_slug.
Consequently, some characters like spaces (bug #1224576) and @ (bug #1233501) were forbidden.
This fix removes validate_slug and provides a less restrictive validation.
Now, all printable ASCII characters -- i.e. from 0x20 to 0x7E -- are valid.
Note that diacritics are disallowed.
On top of that the length is now checked and limited to 255 characters in accordance with Nova.
Security group forms have been factorized in one abstract base class: GroupBase.
CreateGroup and UpdateGroup subclass GroupBase in order to be more DRY.
Change-Id: Ifc8e5f75419a73 a353b2138641773 d36138ecea8
Closes-Bug: #1224576
Closes-Bug: #1233501