[DMC-1065] Davix should read (and log) the response body even if it's an error Created: 25/Jul/18  Updated: 08/May/19

Status: Open
Project: DMC - Development
Component/s: Davix
Affects Version/s: Davix 0.6.8
Fix Version/s: davix 0.7.4
Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)

Type: Improvement Priority: Minor
Reporter: Fabrizio Furano Assignee: Georgios Bitzes
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Component Watchers:


For example, the body of this response contains the reason of the error. Would be very useful if this info arrives to the client.


< HTTP/1.1 500 Internal Server Error
< Date: Wed, 25 Jul 2018 08:52:39 GMT
< Server: Apache/2.2.15 (Red Hat)
< Vary: Accept-Encoding
< Content-Length: 715
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
DAVIX(socket): End of headers.
DAVIX(socket): Running post_headers hooks
DAVIX(http): <- negotiateRequest
DAVIX(http): <- negotiateRequest
DAVIX(chain): read size 0
DAVIX(core): Destroy HttpRequest
DAVIX(http): (EndRequest)(Libneon) Operation incomplete, kill the connection

Comment by Georgios Bitzes [ 25/Jul/18 ]

Have you tried --trace body?

--trace all does not show the body, confusing I know.

Comment by Andrea Manzi [ 25/Sep/18 ]

i don't understand if there is a fix related to this ticket, as it's part of davix 0.6.9 which has been just released.

Comment by Georgios Bitzes [ 25/Sep/18 ]

Hmm, indeed, there have not been any commits related to this ticket. I'm removing this entry from the release notes.

Generated at Tue Jun 18 03:35:39 CEST 2019 using Jira 8.0.2#800010-sha1:15b32da7769637cbcbd22ae5eaacbed621a94e22.