← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1268513] Re: Can not translate special char "&" in XML function create_volume_metadata volumes_client.py

 

** No longer affects: qtdeclarative-opensource-src (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtdeclarative-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1268513

Title:
  Can not translate special char "&" in XML function
  create_volume_metadata volumes_client.py

Status in Cinder:
  New

Bug description:
  1. I add special char like ""!@#$%^&*" in volume "metadata = {"key1": "value1",
                      : "!@#$%^&*"} .Then try to insert it into volume. 
  2. I test it successfully in  volumes_client.create_volume_metadata Json function.
  3. When I test it in XML function, it report error like below 

  Traceback (most recent call last):
    File "/tempest/tempest/api/volume/test_volume_metadata.py", line 130, in test_create_volume_metadata_specialchart_blank
      metadata)
    File "/tempest/tempest/services/volume/xml/volumes_client.py", line 381, in create_volume_metadata
      self.headers)
    File "/tempest/tempest/common/rest_client.py", line 302, in post
      return self.request('POST', url, headers, body)
    File "/tempest/tempest/common/rest_client.py", line 436, in request
      resp, resp_body)
    File "/tempest/tempest/common/rest_client.py", line 530, in _error_checker
      raise exceptions.ServerFault(message)
  ServerFault: Got server fault
  Details: The server has either erred or is incapable of performing the requested operation.

  4. After our investigation, we find when we remove special char "&" ,
  it will be ok. So I think in XML function, it can not translate these
  special char to correct format.

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


References