[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: segfault in http kioslave
From:       "Best, Jan-Pascal van" <j.p.vanbest () tbm ! tudelft ! nl>
Date:       2002-09-18 7:37:24
[Download RAW message or body]

Hi again,

> > Does it help if you change 2189 to:
> >       if ( checkCachedAuthentication( info ) &&
!info.digestInfo.isEmpty())
> 
> I tried this now. It works, but is causes a ping-pong for every single
HTTP request. 
> I think it would be better if, after the first time the server asks
for a Basic
> authentication, we always send it, or at least for the same path or
for subpaths.
> 
> It should update the digestInfo once it receives a response from the
server. I
> noticed that you used:
>        info.realmValue = mHost;
> 
> Unless the server does indeed use the hostname as the realm 
It does. At least, for the Exchange server that I'm connecting to. I
haven't 
had much feedback from other users, so I don't know about other servers.

> I think this is wrong. Does it help if you leave that out?
No, it makes things worse: it now doesn't recognise the auth information
and pops up a dialog asking me for it :(. 

Jan-Pascal

(some cut&pastework from .xsession-errors)

korganizer: Entering ExchangeAccount::authenticate( windowId=27262980 )
DCOP: register 'anonymous-14444' -> number of clients is now 9
DCOP: unregister 'anonymous-14444'
kded: Successfully loaded module 'kpasswdserver'
kded: KPasswdServer::addAuthInfo: User= janb, RealmValue= , WindowId =
27262980
kded: Creating AuthInfo
kdeinit: Got EXEC_NEW 'kio_http' from launcher.
kio (KLauncher): kio_http (pid 14462) up and running.
DCOP: register 'anonymous-14462' -> number of clients is now 9
kio_http_debug: (14462) Reparse Configuration!
kio_http_debug: (14462) Hostname is now: mail.tbm.tudelft.nl
kio_http_debug: (14462) HTTPProtocol::special
kio_http_debug: (14462) HTTPProtocol::davGeneric
webdav://mail.tbm.tudelft.nl/exchange/janb/Calendar
kio_http_debug: (14462) Using proxy: false URL:  Realm:
kio_http_debug: (14462) Enable Persistent Proxy Connection: false
DCOP: register 'anonymous-14462' -> number of clients is now 10
kio (KLauncher): KLauncher: Got
start_service_by_desktop_path('http_cache_cleaner.desktop', ...)
kdeinit: Got EXEC_NEW 'kio_http_cache_cleaner' from launcher.
kio (KLauncher): kio_http_cache_cleaner (pid 14463) up and running.
DCOP: unregister 'anonymous-14462-2'
DCOP: register 'kio_http_cache_cleaner' -> number of clients is now 10
kio_http_debug: (14462) HTTPProtocol::httpOpen
kio_http_debug: (14462) HTTPProtocol::httpCheckConnection:  Socket
status: -1 Keep Alive: true First: false
DCOP: register 'kcookiejar' -> number of clients is now 11
kded: Successfully loaded module 'kcookiejar'
kio (kioslave): WARNING: SlaveBase::checkCachedAuthInfo window =
27262980 url = webdav://mail.tbm.tudelft.nl/excha
nge/janb/Calendar
DCOP: register 'anonymous-14462' -> number of clients is now 12
kded: KPasswdServer::checkAuthInfo: User= , WindowId = 27262980
kded: checkAuthInfo finished
kio_http: (14462) ============ Sending Header:
kio_http: (14462) SEARCH /exchange/janb/Calendar HTTP/1.1
kio_http: (14462) Connection: Keep-Alive
kio_http: (14462) User-Agent: Mozilla/5.0 (compatible; Konqueror/3;
Linux)
kio_http: (14462) Pragma: no-cache
kio_http: (14462) Cache-control: no-cache
kio_http: (14462) Accept: text/*, image/jpeg, image/png, image/*, */*
kio_http: (14462) Accept-Encoding: x-gzip, x-deflate, gzip, deflate,
identity
kio_http: (14462) Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5
kio_http: (14462) Accept-Language: en
kio_http: (14462) Host: mail.tbm.tudelft.nl
kio_http: (14462) Content-Type: text/xml; charset=utf-8
kio_http_debug: (14462) HTTPProtocol::httpOpenConnection
kio_http_cache_cleaner: Current size of cache = 32 kB.
kdeinit: PID 14463 terminated.
DCOP: unregister 'kio_http_cache_cleaner'
kio_http_debug: (14462) POST'ing live data...
kio_http_debug: (14462)Content-Length: 398
kio_http_debug:
kio_http_debug: (14462) HTTPProtocol::readHeader
kio_http: (14462) ============ Received Response:
kio_http: (14462) "HTTP/1.1 401 Access Denied"
kio_http: (14462) "Server: Microsoft-IIS/5.0"
kio_http: (14462) "Date: Wed, 18 Sep 2002 07:14:14 GMT"
kio_http: (14462) "WWW-Authenticate: Basic realm="mail.tbm.tudelft.nl""
kio_http_debug: HTTPProtocol::configAuth()
kio_http_debug: Finished HTTPProtocol::configAuth()
kio_http: (14462) "Connection: close"
kio_http: (14462) "Content-Length: 24"
kio_http: (14462) "Content-Type: text/html"
kio_http_debug: (14462) Content-type: text/html
kio_http: (14462) --empty--
kio_http_debug: (14462) HTTPProtocol::getAuthorization: Current
Response: 401, Previous Response: 0
kio (kioslave): WARNING: SlaveBase::checkCachedAuthInfo window =
27262980 url = webdav://mail.tbm.tudelft.nl/exchange/janb/Calendar
kded: KPasswdServer::checkAuthInfo: User= , WindowId = 27262980
kio_http_debug: (14462) Prompting the user for authorization...
kio (kioslave): SlaveBase::OpenPassDlg User=
kded: KPasswdServer::queryAuthInfo: User= , Message= You need to supply
a username and a password to access this site., WindowId = 27262980
kded: KPasswdServer::processRequest: User= , Message= You need to supply
a username and a password to access this site.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic