Redirections and interactions w/ webdav, kdirlister, klistjob, and kfiledialog

Waldo Bastian bastian at kde.org
Sat Aug 31 21:06:23 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 31 August 2002 04:51 am, Hamish Rodda wrote:
> I'm troubleshooting bug #46849, which appears a complex interaction between
> the classes in the subject line.
>
> What I need to know first is what behaviour a slave should have once it has
> called redirection().  Should it call finished(), or just return?
>
> At the moment, opening a file dialog and entering webdav://okmaybe.com/
> causes a crash as follows:
>
> kio_http:
> 1. listJob() is called
> 2. a redirection() is issued
> 3. finished() is called
>
> The call to finished() causes a crash in kdirlister because it is receiving
> a result with the old url, where it was expecting the new url.  I think
> this shouldn't be happening anyway, because the result cannot be relevant.

kdirlister should either ignore the result url then or it should keep better 
track of redirections.

> However, when I change it such that finished() is not called, listJob does
> not process the redirection, as it seems to wait for finished() before it
> re-shedules itself to list the contents of the redirected directory.  So,
> we have a cyclic problem...
>
> Which of these is at fault?? Then I know which one to fix :)

The io-slave must call finished after the redirection.

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

iD8DBQE9cSHCN4pvrENfboIRAq5IAJwKCKR6JVORwtTwF2Y2yeplTTE2lQCgqAZd
r4ulBpvoGmpX5RJcic8NGxs=
=yk/k
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list