http://bugs.winehq.org/show_bug.cgi?id=27113
Summary: Free download manager "Unknow network error" without native wininet Product: Wine Version: 1.3.19 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wininet AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
Created an attachment (id=34567) --> (http://bugs.winehq.org/attachment.cgi?id=34567) LOG: free download manager unknow network error
Free download manager is open source. http://www.freedownloadmanager.org/download.htm
1. Download http://files2.freedownloadmanager.org/fdminst3.exe
2. winetricks -q mfc42
3. install fdminst3.exe $ wine fdminst3.exe
4. open fdm.exe and try to download any files.
$ wine fdm.exe
then there are several "Unknow network error" massage in the log window of fdm.exe, the downloading will not start.
console log is like this: fixme:wininet:InternetAutodial STUB fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_DISABLE_AUTODIAL; STUB fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT/DATA_SEND_TIMEOUT 120000 fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT/DATA_SEND_TIMEOUT 120000 fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (120000): STUB fixme:wininet:InternetSetOptionW Option 43 STUB
winetricks wininet should workaround for it.
full log is attached
http://bugs.winehq.org/show_bug.cgi?id=27113
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |http://files2.freedownloadm | |anager.org/fdminst3.exe
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #1 from Qian Hong fracting@gmail.com 2012-01-26 12:00:02 CST --- Hello, retest with current version of Free download manager: FDM ver. 3.8 build 1173
$ sha1sum fdminst3.exe 74495fc88d85a35871a2a997926304b0590f80a0 fdminst3.exe
Works with both wine-1.3.19 and wine-1.3.37-413-g5f42f7d
Fortunately, we still have an old version to reproduce this bug:
http://files.freedownloadmanager.org/fdm494inst.exe $ sha1sum fdm494inst.exe 38c3200278a7a126b91b19697563e5412a2eb6f0 fdm494inst.exe
Broken with both wine-1.3.19 and wine-1.3.37-413-g5f42f7d
http://bugs.winehq.org/show_bug.cgi?id=27113
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://files2.freedownloadm |http://files.freedownloadma |anager.org/fdminst3.exe |nager.org/fdm494inst.exe
--- Comment #2 from Qian Hong fracting@gmail.com 2012-01-26 12:00:48 CST --- Update URL
http://bugs.winehq.org/show_bug.cgi?id=27113
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2012-01-27 17:09:01 CST --- I can't reproduce in 1.4-rc1. I tried downloading the own FDM installer. Does the file need to be bigger or maybe take a mych longer time?
I can see the same fixmes you posted in comment 0 but I don't get the log errors =(
FDM about box shows version 2.1 build 494.
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #4 from Qian Hong fracting@gmail.com 2012-01-28 04:17:26 CST --- (In reply to comment #3)
I can't reproduce in 1.4-rc1. I tried downloading the own FDM installer. Does the file need to be bigger or maybe take a mych longer time?
I can see the same fixmes you posted in comment 0 but I don't get the log errors =(
FDM about box shows version 2.1 build 494.
That's strange, I tried to download the FDM installer too, but I always see the same error in the FDM log window: --- snip --- 0% 18:11:32 2012-1-28 Starting download... 18:11:32 2012-1-28 Unknown network error 18:11:32 2012-1-28 Pause 5 sec. 18:11:37 2012-1-28 Starting download... 18:11:37 2012-1-28 Unknown network error 18:11:37 2012-1-28 Pause 5 sec. --- snip ---
I found a dirty hack, simply force InternetSetOptionW returning TRUE will cheat the FDM and let the downloading start.
I can't find the source code of FDM v2.1, but I can download the FDM v2.5 from http://sourceforge.net/projects/freedownload/files/Free%20Download%20Manager...
By looking at the v2.5 code,I found InternetSetOptionW is called by the static linked shdowvw library. Have no idea what to do yet.
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2012-01-28 11:23:13 CST --- Is it possible to know the exact option it tries to set and adds the error? Maybe we can implement only the operation it checks the return.
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #6 from Qian Hong fracting@gmail.com 2012-01-28 13:19:57 CST --- (In reply to comment #5)
Is it possible to know the exact option it tries to set and adds the error?
Yeah, only INTERNET_OPTION_PROXY_USERNAME and INTERNET_OPTION_PROXY_PASSWORD are needed.
- If InternetSetOptionW for INTERNET_OPTION_PROXY_USERNAME return FALSE, then INTERNET_OPTION_PROXY_PASSWORD is not set, fdm.exe fail to download files; - If InternetSetOptionW for INTERNET_OPTION_PROXY_USERNAME return TRUE, then the application will try to set INTERNET_OPTION_PROXY_PASSWORD: - If InternetSetOptionW for INTERNET_OPTION_PROXY_PASSWORD return FALSE, then fdm.exe will still fail to download - Instead, if InternetSetOptionW for INTERNET_OPTION_PROXY_PASSWORD return TRUE as well, fdm.exe will start to download.
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2012-01-28 14:26:09 CST --- I can reproduce the problem by forcing the proxy usage. Do you have proxy in your system? FDM seems to only use proxy if it's configured in the system. IMO the title should be changed to "Free Download Manager gets unknow network error if proxy authentication is enabled".
http://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #8 from Qian Hong fracting@gmail.com 2012-01-28 14:52:07 CST --- (In reply to comment #7)
I can reproduce the problem by forcing the proxy usage. Do you have proxy in your system? FDM seems to only use proxy if it's configured in the system. IMO the title should be changed to "Free Download Manager gets unknow network error if proxy authentication is enabled".
My http_proxy and HTTP_PROXY environment values are unset, I think I didn't set proxy in my system, do I miss anything?
https://bugs.winehq.org/show_bug.cgi?id=27113
--- Comment #9 from Austin English austinenglish@gmail.com --- using: austin@aw25 ~ $ sha1sum fdm494inst.exe 38c3200278a7a126b91b19697563e5412a2eb6f0 fdm494inst.exe
works for me with wine-1.7.20-33-g3ccaad8, with no proxy in use (and none easily available).
@Qian, perhaps the Great Firewall is your issue? Can you try that version on windows and the same network to see if it works?
https://bugs.winehq.org/show_bug.cgi?id=27113
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bedf296a27d5689beb693637407 | |829b0bd6d8a1c Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Qian Hong fracting@gmail.com --- (In reply to Qian Hong from comment #6)
(In reply to comment #5)
Is it possible to know the exact option it tries to set and adds the error?
Yeah, only INTERNET_OPTION_PROXY_USERNAME and INTERNET_OPTION_PROXY_PASSWORD are needed.
- If InternetSetOptionW for INTERNET_OPTION_PROXY_USERNAME return FALSE,
then INTERNET_OPTION_PROXY_PASSWORD is not set, fdm.exe fail to download files;
- If InternetSetOptionW for INTERNET_OPTION_PROXY_USERNAME return TRUE,
then the application will try to set INTERNET_OPTION_PROXY_PASSWORD:
- If InternetSetOptionW for INTERNET_OPTION_PROXY_PASSWORD return FALSE,
then fdm.exe will still fail to download
- Instead, if InternetSetOptionW for INTERNET_OPTION_PROXY_PASSWORD
return TRUE as well, fdm.exe will start to download.
Thanks Austin, I can't reproduce the bug. According to comment #6, I think this bug is fixed by:
commit bedf296a27d5689beb693637407829b0bd6d8a1c Author: Hans Leidekker hans@codeweavers.com Date: Mon Apr 22 11:02:50 2013 +0200
wininet: Add support for INTERNET_OPTION_PROXY_USERNAME and INTERNET_OPTION_PROXY_PASSWORD.
https://bugs.winehq.org/show_bug.cgi?id=27113
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.21.