segfault in http kioslave
Waldo Bastian
bastian at kde.org
Mon Sep 16 18:30:46 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 16 September 2002 02:26 am, Best, Jan-Pascal van wrote:
> Hi all,
>
> I'm getting segfaults in the http kioslave (CVS HEAD), in
> createDigestAuth(),
> when accessing an Exchange server (Exchange 2000, Microsoft-IIS/5.0).
>
> The funny thing is that this server usually uses Basic authentication
> instead of Digest. If I use Konqueror, the segfaults happens with the
> URL
> webdav://mail.tbm.tudelft.nl/exchange/janb/Calendar/
> but not with Outlook web access, via the URL
> http://mail.tbm.tudelft.nl
>
> From the debug log, it appears that the authentication computation is
> happening
> before the first request, so not in reaction to a 401 sent by the
> server. I've
> registered name and password before with the kPasswdServer. I don't
> understand
> why the kioslave thinks it should authenticate before hearing that from
> the server.
If we have a password / username available for a certain server we will use it
to prevent an extra round-trip.
> This results in an empty info.digestInfo in line 2189
> (HEAD=1.538),
> which isn't surprising, and a move to AUTH_Digest, which is wrong and
> unasked for.
Yes, I have seen this before but it wasn't really clear to me when that
happened and couldn't reproduce it.
> Are there any recent changes to the authentication code in kio_http that
> could have caused this?
I think it did it wrong for quite some time, but a recent change might be
responsible for the segfaults.
Does it help if you change 2189 to:
if ( checkCachedAuthentication( info ) && !info.digestInfo.isEmpty())
Cheers,
Waldo
- --
bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9hhVHN4pvrENfboIRAsoNAKCWdv4TgMteJtkNpQ6fpvMmMS5zmQCeO4+B
5qRVqOBHnEIWs7t7MPzl0Ug=
=tGxn
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list