Comment 5 for bug 944034

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

There's nothing in the doc [1] that says characters in "&!@#$%^&*()+_" are invalid. we throw Bad Request only under the following conditions [2]

[1] http://docs.openstack.org/api/openstack-compute/1.1/content/ServerUpdate.html
[2] validation code
-------------------------------------------------------------------------------------
    def _validate_server_name(self, value):
        if not isinstance(value, basestring):
            msg = _("Server name is not a string or unicode")
            raise exc.HTTPBadRequest(explanation=msg)

        if not value.strip():
            msg = _("Server name is an empty string")
            raise exc.HTTPBadRequest(explanation=msg)

        if not len(value) < 256:
            msg = _("Server name must be less than 256 characters.")
            raise exc.HTTPBadRequest(explanation=msg)
-------------------------------------------------------------------------------------