-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100941/
-----------------------------------------------------------
Review request for kdelibs.
Summary
-------
The attached patch fixes the problem reported in the bug reports listed above.
Specifically, clicking on ftp files seems to not work on more occasions than
not for me and reporters of those bugs. In my own local tests, clicking on a
PDF file simply results in okular being opened and nothing displayed. Actually
a copy completed notification with an "open" button is shown and clicking on
this button opens the PDF file in another instance of okular. For text files
kate gives a warning message about not being able to read the file and to check
permission. In this case too a status notification is shown however and
clicking on it results in the same behavior as the PDF case.
The problem seems to stem from the fact that in case of Ftp::copy, which is
used in both of the examples I gave above, the finished signal is emitted
before calling the ftpCloseCommand. Reversing that order as this patch does
fixes the problem completely here. I suspect socket io buffering to be the
culprit, but I did not dig enough to say definitively.
This addresses bugs 181393 and 203445.
http://bugs.kde.org/show_bug.cgi?id=181393
http://bugs.kde.org/show_bug.cgi?id=203445
Diffs
-----
kioslave/ftp/ftp.cpp 7414588
Diff: http://git.reviewboard.kde.org/r/100941/diff
Testing
-------
Thanks,
Dawit