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)
-------------------------------------------------------------------------------------
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 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- - server_ name(self, value): est(explanation =msg)
[2] validation code
-------
def _validate_
if not isinstance(value, basestring):
msg = _("Server name is not a string or unicode")
raise exc.HTTPBadRequ
if not value.strip(): est(explanation =msg)
msg = _("Server name is an empty string")
raise exc.HTTPBadRequ
if not len(value) < 256: est(explanation =msg) ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -
msg = _("Server name must be less than 256 characters.")
raise exc.HTTPBadRequ
-------