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@medictech.com,jun66j5,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)\r\n\r\nI 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.\r\n\r\n{{{\r\nPOST http://10.250.10.55/mew/login/xmlrpc HTTP/1.1\r\nContent-Type: text/xml\r\nUser-Agent: XML-RPC.NET\r\nHost: 10.250.10.55\r\nCookie: trac_session=2a1a01b9d7d8bcb3db9afc27\r\nContent-Length: 229\r\n\r\n<?xml version="1.0"?>\r\n<methodCall>\r\n  <methodName>system.methodHelp</methodName>\r\n  <params>\r\n    <param>\r\n      <value>\r\n        <string>ticket.getRecentChanges</string>\r\n      </value>\r\n    </param>\r\n  </params>\r\n</methodCall>\r\n}}}\r\n\r\n{{{\r\nHTTP/1.1 401 Unauthorized\r\nServer: tracd/0.12.2 Python/2.7\r\nDate: Wed_ 02 Mar 2011 14:07:38 GMT\r\nWWW-Authenticate: Basic realm="Control Panel"\r\nContent-Type: text/plain\r\nPragma: no-cache\r\nCache-control: no-cache\r\nExpires: Fri_ 01 Jan 1999 00:00:00 GMT\r\nContent-Length: 23\r\n\r\nAuthentication required<head>\r\n<title>Error response</title>\r\n</head>\r\n<body>\r\n<h1>Error response</h1>\r\n<p>Error code 400.\r\n<p>Message: Bad HTTP/0.9 request type ('&lt;?xml').\r\n<p>Error code explanation: 400 = Bad request syntax or unsupported method.\r\n</body>\r\n\r\n}}},defect,closed,normal,HttpAuthPlugin,normal,fixed,XmlRpc authentication content-length,olemis,0.12
