Review Request: Proper password caching when opening remote directories in KFileDialog

Dawit Alemayehu adawit at
Wed Nov 30 18:25:15 GMT 2011

This is an automatically generated e-mail. To reply, visit:

(Updated Nov. 30, 2011, 6:25 p.m.)

Review request for kdelibs and David Faure.


Updated patch based on dfaure's feedback.


The attached patch fixes the scenario outlined in bug# 179663 by making the best effort to identify and use the top most window when invoking KIO functions. That way any password information supplied by the user is cached, even if the user did not check the "Remember password" checkbox, for the duration of the application instead of just the lifetime of the file dialog. 

Right now almost all KFileDialog's KIO access does not set the widget parameter. If a site then requires authentication, no window-id information will be passed to it. That in turn results in the user supplied password being cached for only a very very short duration, ~10 secs. Afterwards, the password is removed and the user is inevitably re-prompted to supply the same credentials again.

This addresses bug 179663.

Diffs (updated)

  kio/kio/scheduler.cpp b4e95a5 
  kfile/knewfilemenu.cpp ac54041 
  kfile/kdirselectdialog.cpp 0212e58 
  kfile/kfilewidget.cpp 09b86d4 
  kfile/kdiroperator.cpp 4c93ac9 



Tested with the scenario outlined in the afforementioned bug report using a publicly available demo webdav server, webdav://


Dawit Alemayehu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list