Bug #38
closedXbox HTTP Authorization does not work
0%
Description
Initially posted here by wader, 15/12/09.
This seams to be a regression, i updated to XBMC SVN 2009-09-12 r25497 (T3CH) and then my HTTP directory source stopped working. No Authorization header is sent. I use a source with embedded username and password ( http://user:password@HOSTNAMED_REPLACED)
Have tried 9.11b2 on OS X and it works fine with the same source.
HTTP request/reply seen if using tcpdump and then follow the TCP stream in wireshark:
GET / HTTP/1.1 User-Agent: XBMC/r25497 (; http://www.xbmc.org) Host: REPLACED_HOSTNAME Accept: */*
HTTP/1.1 401 Authorization Required Date: Tue, 15 Dec 2009 20:07:30 GMT Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g WWW-Authenticate: Basic realm="Password Required" Content-Length: 565 Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Authorization Required</title> </head><body> <h1>Authorization Required</h1> <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p> <hr> <address>Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g Server at REPLACED_HOSTNAME Port 80</address> </body></html>
Xbox log: 20:47:50 M: 43274240 DEBUG: CGUIMediaWindow::GetDirectory ( http://user:password@HOSTNAME_REPLACED/) 20:47:50 M: 43274240 DEBUG: ParentPath = http://user:password@HOSTNAME_REPLACED/ 20:47:50 M: 43274240 DEBUG: FileCurl::Open(D00A034C) http://HOSTNAME_REPLACED/ 20:47:50 M: 43237376 INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://HOSTNAME_REPLACED 20:47:51 M: 43134976 DEBUG: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 22 20:47:51 M: 43139072 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream. 20:47:51 M: 43139072 ERROR: DIRECTORY::CHTTPDirectory::GetDirectory - Unable to get http directory 20:47:51 M: 43139072 DEBUG: FileCurl::Close(D00A034C) http://HOSTNAME_REPLACED/ 20:47:51 M: 43237376 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting http://user:password@HOSTNAME_REPLACED/ 20:47:51 M: 43237376 ERROR: CGUIMediaWindow::GetDirectory( http://user:password@HOSTNAME_REPLACED/) failed