ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00362
[Bug 1268513] [NEW] Can not translate special char "&" in XML function create_volume_metadata volumes_client.py
Public bug reported:
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.
** Affects: qtdeclarative-opensource-src (Ubuntu)
Importance: Undecided
Status: New
--
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 “qtdeclarative-opensource-src” package in Ubuntu:
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/ubuntu/+source/qtdeclarative-opensource-src/+bug/1268513/+subscriptions
Follow ups
References