horizon/openstack_dashboard/dashboards/project/access_and_security/security_groups
Romain Hardouin 80d9049fb6 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: Ifc8e5f75419a73a353b2138641773d36138ecea8
Closes-Bug: #1224576
Closes-Bug: #1233501
2014-12-29 16:50:43 +01:00
..
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
forms.py Allow all printable ASCII characters in security group names 2014-12-29 16:50:43 +01:00
tables.py Fix inconsistent behaviour exceeding quota limit 2014-10-06 13:10:14 +01:00
tests.py Allow all printable ASCII characters in security group names 2014-12-29 16:50:43 +01:00
urls.py Fix E128 errors in openstack_dashboard/dashboards/project/ 2014-10-16 16:53:52 +09:00
views.py Adds the security group id besides the name in Manage Rules 2014-12-19 14:13:04 +05:30