Bug 205984

Summary: Unable to download a file from a user due to "directory does not exist" error
Product: [Applications] kopete Reporter: George Yohng <georgekde>
Component: generalAssignee: KDE-Windows <kde-windows>
Status: RESOLVED FIXED    
Severity: normal CC: Ch.Ehrlicher, mattr
Priority: HI    
Version: 0.70.90   
Target Milestone: ---   
Platform: unspecified   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: message dialog
file selection

Description George Yohng 2009-09-02 14:09:32 UTC
Version:           0.70.90 (using 4.3.00 (KDE 4.3.0), MS Visual Studio 2008 SP1)
Compiler:          cl.exe
OS:                Microsoft Windows (unknown) release 6.1

A file, which is sent by a colleague of mine, appears inline in the message text. When I press Download, it allows me to choose the path, but then says 'Directory does not exist', for any path whatsoever.

Such as 'Directory D: does not exist', 'Directory C:' does not exist, 'Directory dir does not exist', and does not allow to save the file.

This happens on Windows.
Comment 1 George Yohng 2009-09-02 14:13:01 UTC
Created attachment 36626 [details]
message dialog
Comment 2 George Yohng 2009-09-02 14:13:56 UTC
Created attachment 36627 [details]
file selection
Comment 3 Matt Rogers 2009-09-06 21:51:31 UTC
This could a case of a mismatch of using KUrl's path() function instead of toLocalFile. If somebody from the windows team could provide clarification about which one would be best to use, that would be helpful.
Comment 4 Christian Ehrlicher 2009-09-06 22:06:29 UTC
See discussion here: http://lists.kde.org/?t=125213060900001&r=1&w=2
And here the full explanation: http://lists.kde.org/?l=kde-core-devel&m=123550729120429&w=2
Comment 5 Christian Ehrlicher 2010-01-03 16:15:46 UTC
SVN commit 1069497 by chehrlic:

KUrl::path() -> KUrl::toLocalFile()

BUG: 205984

 M  +19 -19    kopeteavatarmanager.cpp  
 M  +1 -1      kopetemetacontact.cpp  
 M  +1 -1      kopetemimetypehandler.cpp  
 M  +7 -7      kopetetransfermanager.cpp  
 M  +1 -1      ui/avatarselectorwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1069497
Comment 6 Christian Ehrlicher 2010-01-03 17:07:44 UTC
SVN commit 1069518 by chehrlic:

KUrl::path() -> KUrl::toLocalFile()

BUG: 205984

 M  +1 -1      oscar/icq/icqprotocol.cpp  
 M  +1 -1      qq/ui/dlgqqvcard.cpp  
 M  +1 -1      yahoo/libkyahoo/client.cpp  
 M  +2 -2      yahoo/libkyahoo/receivefiletask.cpp  
 M  +1 -1      yahoo/libkyahoo/sendfiletask.cpp  
 M  +5 -5      yahoo/yahooaccount.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1069518
Comment 7 Nick Shaforostoff 2010-01-04 05:25:29 UTC
В сообщении от Воскресенье 03 января 2010 18:07:46 автор Christian Ehrlicher 
написал:
> KUrl::path() -> KUrl::toLocalFile()
also, we should be careful with url.directory(),
because in my case it returned '/C:/' instead of 'C:/'