id summary reporter owner description type status priority component severity resolution keywords cc release
8558 Authentication Failure returns invalid HTTP Response (content-length incorrect) kubes@… Jun Omae "I have install XmlRpcPlugin and HttpAuthPlugin, I am not sure, where exactly is the error. when I connect by my .NET client to the XmlRpc, I get this exception from request.GetResponse() (.NET method)
I debugged it by fiddler HTTP debugger and I have found, that trac send wrong Content-Length (23bytes). It sends text ""Authentication required"" which is exactly 23bytes. But there is small HTML block appended, which cause, that content length is wrong. I can reproduce it with python 2.5 and python 2.7 as well. I have attached the output of fiddler, please see bellow. I find interesting, that the request is made via HTTP 1.1, but in repsonse HTTP 0.9 is mentioned.
POST http://10.250.10.55/mew/login/xmlrpc HTTP/1.1
Error code 400.
Message: Bad HTTP/0.9 request type ('<?xml').
Error code explanation: 400 = Bad request syntax or unsupported method. }}}" defect closed normal HttpAuthPlugin normal fixed XmlRpc authentication content-length Olemis Lang 0.12