From kde-devel Mon Oct 25 10:52:20 2004 From: David Faure Date: Mon, 25 Oct 2004 10:52:20 +0000 To: kde-devel Subject: Re: dirtree_module and URLs with passwords Message-Id: <200410251252.23577.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=109870147904432 On Sunday 24 October 2004 19:51, Jakub Stachowski wrote: > Dnia sobota, 23 października 2004 12:25, Jakub Stachowski napisał: > > Dnia sobota, 23 października 2004 10:25, David Faure napisał: > > > On Friday 22 October 2004 18:26, Jakub Stachowski wrote: > > > > Hello, > > > > > > > > dirtree_module from kdebase/konqueror/sidebar/trees/dirtree_module > > > > currently breaks on URLs with passwords. For example redirection from > > > > dnssd://_ftp._tcp/some service to ftp://user:pass@host/ results in > > > > "Cannot find parent item URL in the tree. Internal error.". This is > > > > because all URLs are inserted into dictionary with passwords, but > > > > searched for (in slotNewItems) without - so keys don't match. Password > > > > is stripped at dirtree_module.cpp:393 , just before dictionary lookup. > > > > Is there any reason for doing this? If not, can I remove this line? > > > > > > cvs annotate has the answer to your question... > > > > > > 1.9 (faure 06-Nov-01): dir.setPass( QString::null ); > > > > > > revision 1.9 > > > date: 2001/11/06 02:43:41; author: faure; state: Exp; lines: +1 -0 > > > Fixed #34557 (ftp urls with pass in the url -> crash) > > > > I followed the bugreport and on 3.2.3 (Mandrake), 3.3.0 (Debian) and recent > > CVS this bug is back (it is exactly the same thing that I described above). > > Funny thing is that reverting fix from rev 1.9 solves the problem. Indeed. Strange; something else must have changed. > I see no further comments on this issue. So is it ok to commit and fix it? Yes, please do. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<