http://bugs.winehq.org/show_bug.cgi?id=18243
Summary: wine iexplore.exe http://www.some.file.com/foobar.exe fails Product: Wine Version: 1.1.20 Platform: PC URL: ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe OS/Version: Linux Status: NEW Keywords: download, source Severity: minor Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=20753) --> (http://bugs.winehq.org/attachment.cgi?id=20753) terminal output
While trying out various means of downloading files for my SoC project, I found that UrlDownloadToFile doesn't support ftp protocol, only http.
No problem, I figured, we've got an IE implementation, I can use that!
but alas:
$ wine iexplore.exe ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe fails. The key line appears to be: err:mshtml:before_async_open GetWineURL returned NULL
The same occurs for http protocol downloads.
Works fine on Windows. Full terminal output attached.
http://bugs.winehq.org/show_bug.cgi?id=18243
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #1 from Jacek Caban jacek@codeweavers.com 2009-04-27 11:58:20 --- Downloading files is not implemented in builtin IE.
I'm not sure what you mean that UrlDownloadToFile doesn't support ftp protocol. It does support ftp protocol and if it doesn't work, it should be fixed.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #2 from Austin English austinenglish@gmail.com 2009-04-27 12:14:44 --- Created an attachment (id=20755) --> (http://bugs.winehq.org/attachment.cgi?id=20755) testcases on windows
Here's a couple stripped down AutoHotKey scripts.
urldownloadtofile-ftp.exe - fails in Windows/Wine urldownloadtofile-http.exe - passes in Windows/Wine
looking around a bit more, seems the ftp protocol may need to be specially formatted. If I can find something that works on Windows but not Wine, I'll file a new bug.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #3 from Jacek Caban jacek@codeweavers.com 2009-04-27 12:31:10 --- Sorry, I thought that you mean UrlDownloadToFile function from urlmon.dll (that BTW supported only http protocol until ~1 year ago), not an application with the same name.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #4 from Austin English austinenglish@gmail.com 2009-04-27 12:58:08 --- (In reply to comment #3)
Sorry, I thought that you mean UrlDownloadToFile function from urlmon.dll (that BTW supported only http protocol until ~1 year ago), not an application with the same name.
No problem. I thought it _was_ using UrlDownloadToFile, but it appears to be using InternetOpenUrl from wininet (attached).
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #5 from Austin English austinenglish@gmail.com 2009-04-27 12:58:35 --- Created an attachment (id=20757) --> (http://bugs.winehq.org/attachment.cgi?id=20757) urldownloadtofile function from AutoHotKey
http://bugs.winehq.org/show_bug.cgi?id=18243
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #6 from Hans Leidekker hans@meelstraat.net 2009-04-27 15:30:12 --- The immediate problem is that InternetReadFileEx is not implemented for ftp connections. I'll attach a fix. Next problem is that the file is not fully written to disk.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #7 from Hans Leidekker hans@meelstraat.net 2009-04-27 15:32:01 --- Created an attachment (id=20760) --> (http://bugs.winehq.org/attachment.cgi?id=20760) wininet: Implement InternetReadFileEx for ftp connections.
http://bugs.winehq.org/show_bug.cgi?id=18243
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #8 from Austin English austinenglish@gmail.com 2009-04-28 02:15:16 --- Thanks for the quick patch. The same thing occurs for http urls. Is that a separate bug (or also caused by the file not being fully written to disk)?
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #9 from Hans Leidekker hans@meelstraat.net 2009-04-28 02:38:03 --- The truncation bug happens with any protocol. What happens is that the last WriteFile call fails with an invalid handle error. If I disable the fd cache in ntdll it succeeds and the file is fully written.
A significant thing happening in between is that wininet gets unloaded, but that doesn't close the file handle (it shouldn't, since it's owned by the app).
Another interesting fact is that the CloseHandle call following the failed WriteFile call succeeds.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #10 from Hans Leidekker hans@meelstraat.net 2009-04-28 02:40:37 --- Created an attachment (id=20767) --> (http://bugs.winehq.org/attachment.cgi?id=20767) hack: ntdll: Disable fd cache.
http://bugs.winehq.org/show_bug.cgi?id=18243
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #11 from Jerome Leclanche adys.wh@gmail.com 2009-10-25 17:54:07 --- wine-1.1.32, still fails but a lot more silently now. There is no visual feedback of any kind on whether the file is downloaded, and apparently it's not.
adys@azura:~/bin/winetest$ wine iexplore.exe ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe fixme:ole:CoResumeClassObjects stub fixme:urlmon:URLMoniker_BindToObject use running object table fixme:shdocvw:BindStatusCallback_OnProgress status code 1 fixme:shdocvw:BindStatusCallback_OnProgress status code 2 fixme:wininet:FtpGetFileSize (0x2, 0x32f7fc) fixme:urlmon:create_object Could not find object for MIME L"application/x-msdownload" fixme:shdocvw:BindStatusCallback_OnProgress status code 5 fixme:urlmon:create_object Could not find object for MIME L"application/x-msdownload"
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #12 from Austin English austinenglish@gmail.com 2011-09-08 23:19:56 CDT --- Still in wine-1.3.27-416-g0032de5
http://bugs.winehq.org/show_bug.cgi?id=18243
Felix Yan felixonmars@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felixonmars@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #13 from Felix Yan felixonmars@gmail.com 2012-06-18 04:57:43 CDT --- Tested with wine 1.5.6:
$ WINEPREFIX=~/.wine_clean wine iexplore.exe ftp://ftp.gnupg.org/gcrypt/binary/s ha1sum.exe fixme:ieframe:ClassFactory_QueryInterface (0x7ed7bb44)->({00000003-0000-0000-c00 0-000000000046} 0x33fc04) fixme:ole:CoResumeClassObjects stub fixme:storage:create_storagefile Storage share mode not implemented. fixme:urlmon:URLMoniker_BindToObject use running object table fixme:wininet:FtpGetFileSize (0x3, 0x33f834) fixme:ieframe:handle_navigation_error Navigate to error page
Then following with lots of: fixme:urlmon:create_object Could not find object for MIME L"application/x-msdown load" fixme:ieframe:BindStatusCallback_OnProgress status code 5
http://bugs.winehq.org/show_bug.cgi?id=18243
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #14 from Qian Hong fracting@gmail.com 2012-06-18 05:14:36 CDT --- (In reply to comment #12)
Still in wine-1.3.27-416-g0032de5
Hi Austin, the URL in the bug title ( http://www.some.file.com/foobar.exe ) seems expired, for me it is just an html file without any downloadable exe file. could you double check and update the bug title to avoid confusing?
Regards.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #15 from Jacek Caban jacek@codeweavers.com 2012-06-18 05:20:58 CDT --- No need for that, it's well known that we don't have download manager-like thing implemented in mshtml/ieframe and any non-HTML-like URL won't work. We already have a few such bugs which should probably be resolved as duplicated.
http://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #16 from Felix Yan felixonmars@gmail.com 2012-06-18 05:26:49 CDT --- *** Bug 30937 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #17 from Austin English austinenglish@gmail.com --- In wine-1.7.25:
austin@debian-home:~$ wine iexplore.exe ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046} fixme:ole:CoResumeClassObjects stub fixme:ntdll:NtLockFile I/O completion on lock not implemented yet fixme:wininet:FtpGetFileSize (0x3, 0x32f74c) fixme:ieframe:handle_navigation_error Navigate to error page fixme:urlmon:create_object Could not find object for MIME L"application/x-msdownload" fixme:ieframe:handle_navigation_error Navigate to error page fixme:wininet:FtpGetFileSize (0x5, 0x32f74c) fixme:ieframe:handle_navigation_error Navigate to error page fixme:urlmon:create_object Could not find object for MIME L"application/x-msdownload" fixme:ieframe:handle_navigation_error Navigate to error page
it then opens a IE window with the URL, but doesn't download the file.
https://bugs.winehq.org/show_bug.cgi?id=18243
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=18243
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #18 from super_man@post.com --- (In reply to Austin English from comment #17)
In wine-1.7.25:
austin@debian-home:~$ wine iexplore.exe ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe
Could also be a dupe.
still fails 1.7.55
https://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #19 from super_man@post.com --- fixme:wininet:FtpGetFileSize (0x3, 0x33f74c) fixme:ieframe:handle_navigation_error Navigate to error page fixme:urlmon:create_object Could not find object for MIME L"application/x-msdownload" fixme:ieframe:handle_navigation_error Navigate to error page
stil fails 1.9.12
https://bugs.winehq.org/show_bug.cgi?id=18243
Vitaly Lipatov lav@etersoft.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lav@etersoft.ru
https://bugs.winehq.org/show_bug.cgi?id=18243
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #20 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-5.1.
https://bugs.winehq.org/show_bug.cgi?id=18243
--- Comment #21 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-7.0-rc4.