Description of problem: Bad error message when trying to remove builit in group everyone: "Cannot remove the built-in group "Everyone"" Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 2012-06-27 14:44:28,109 - MainThread - users - DEBUG - DELETE request content is -- url:http://localhost:8080/api/groups/eee00000-0000-0000-0000-123456789eee 2012-06-27 14:44:28,184 - MainThread - users - DEBUG - Response body for DELETE request is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><fault><reason>Operation Failed</reason><detail>[Cannot remove the built-in group "Everyone".]</detail></fault> Actual results: Expected results: Additional info:
This is general problem , it will occur whenever Rest gets quotes in error messages: <fault> <reason>Operation Failed</reason> <detail>[Data Center name must be formed of alphanumeric characters, numbers or "-_"]</detail> </fault> <fault> <reason>Operation Failed</reason> <detail>[Storage Domain name must be formed of "a-z0-9A-Z" or "-_"]</detail> </fault>
I don't see this as a bug, " is a valid way to represent a double quote in a XML document. Try any program that handles XML and you will see that " is correctly translated. For example, save the the fault XML to a fault.xml file and then run this: xmllint fault.xml Or in python: #!/usr/bin/python import lxml.etree doc = lxml.etree.parse("fault.xml") msg = doc.xpath("/fault/detail")[0].text print(msg) Both will print this: [Storage Domain name must be formed of "a-z0-9A-Z" or "-_"]