It turns out that both the JSON and XML deserializers in nova will
detect invalid utf8 sequences so this bug is invalid. The only issue is
on the tempest test side


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

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

Title:
  Nova allows creating an Image name with invalid utf8 (thus breaking
  tools further down the pipeline)

Status in OpenStack Compute (Nova):
  Invalid
Status in Tempest:
  Fix Released

Bug description:
  Our tempest tests that checks for 400 Bad Request return code fails
  with a ComputeFault instead.

  Pass multi-byte character image name during Create Image
  Actual Response Code: ComputeFault, 500 
  Expected Response Code: 400 Bad Request

  
  Return an error if the server name has a multi-byte character ... FAIL

  ======================================================================
  FAIL: Return an error if the server name has a multi-byte character
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/tempest/tests/test_images.py", line 251, in 
test_create_image_specify_multibyte_character_server_name
      self.fail("Should return 400 Bad Request if multi byte characters"
  AssertionError: Should return 400 Bad Request if multi byte characters are 
used for image name
  -------------------- >> begin captured logging << --------------------
  tempest.config: INFO: Using tempest config file 
/opt/stack/tempest/etc/tempest.conf
  tempest.common.rest_client: ERROR: Request URL: 
http://10.2.3.164:8774/v2/1aeac1cfbfdd43c2845b2cb3a4f15790/images/24ceff93-1af3-41ab-802f-9fc4d8b90b69
  tempest.common.rest_client: ERROR: Request Body: None
  tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 31 May 
2012 06:02:33 GMT', 'status': '404', 'content-length': '62', 'content-type': 
'application/json; charset=UTF-8', 'x-compute-request-id': 
'req-7a15d284-e934-47a1-87f4-7746e949c7a2'}
  tempest.common.rest_client: ERROR: Response Body: {"itemNotFound": 
{"message": "Image not found.", "code": 404}}
  tempest.common.rest_client: ERROR: Request URL: 
http://10.2.3.164:8774/v2/1aeac1cfbfdd43c2845b2cb3a4f15790/servers/ecb51dfb-493d-4ef8-9178-1adc3d96a04d/action
  tempest.common.rest_client: ERROR: Request Body: {"createImage": {"name": 
"\ufeff43802479847"}}
  tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 31 May 
2012 06:02:44 GMT', 'status': '500', 'content-length': '128', 'content-type': 
'application/json; charset=UTF-8', 'x-compute-request-id': 
'req-1a9505f5-4dfc-44e7-b04a-f8daec0f956e'}
  tempest.common.rest_client: ERROR: Response Body: {u'computeFault': 
{u'message': u'The server has either erred or is incapable of performing the 
requested operation.', u'code': 500}}
  --------------------- >> end captured logging << ---------------------

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to