Federico Simoncelli has posted comments on this change.

Change subject: BindingXmlRPC - do_PUT to return execution result in headers
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/27997/3/vdsm/BindingXMLRPC.py
File vdsm/BindingXMLRPC.py:

Line 177:                         self.send_header(self.HEADER_TASK_ID, 
response['uuid'])
Line 178:                     else:
Line 179:                         
self.send_response(httplib.INTERNAL_SERVER_ERROR)
Line 180: 
Line 181:                     self._send_response_headers(response)
What I remember we agreed upon was to try and adhere to HTTP standards.
On error:

- send_response INTERNAL_SERVER_ERROR (ok)
- send the error information in the body

On success:

- send the task id in the headers
Line 182:                     self.end_headers()
Line 183: 
Line 184:                 except socket.timeout:
Line 185:                     self.send_error(httplib.REQUEST_TIMEOUT,


-- 
To view, visit http://gerrit.ovirt.org/27997
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I25b13f44a65cb2c794c458b03ba361bf0af92120
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to