[Bug 56559] New: wine is unable to launch a .exe that just downloads a file
https://bugs.winehq.org/show_bug.cgi?id=56559 Bug ID: 56559 Summary: wine is unable to launch a .exe that just downloads a file Product: Wine Version: 9.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: gerard.labadie(a)sysgroup.fr Distribution: --- all the info is in https://forum.winehq.org/viewtopic.php?t=38779 I want to launch iologo-launcher that is avalable at https://cellar-c2.services.clever-cloud.com/iologo-app/launcher2/5/iologo-la... and wine iolog-launcher.exe does nothing on Windows this file just downloads iologo_setup.exe and then I am able to launch iologo_setup.exe with wine qwertymnb offered a hack and said it is a wine bug [quote]diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c index 7768e9e5bd3..e23f63f86e7 100644 --- a/dlls/cryptnet/cryptnet_main.c +++ b/dlls/cryptnet/cryptnet_main.c @@ -2304,7 +2304,7 @@ typedef struct _OLD_CERT_REVOCATION_STATUS { BOOL WINAPI CertDllVerifyRevocation(DWORD dwEncodingType, DWORD dwRevType, DWORD cContext, PVOID rgpvContext[], DWORD dwFlags, PCERT_REVOCATION_PARA pRevPara, PCERT_REVOCATION_STATUS pRevStatus) -{ +{return 1; DWORD error = 0, i; FILETIME now; LPFILETIME pTime = NULL; [/quote] my wine version [code]$ wine --version wine-9.6 [/code] -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 --- Comment #1 from Hans Leidekker <hans(a)meelstraat.net> --- The launcher passes CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY which means the revocation check will fail if the CRLs it needs are not cached. If you run these commands first: $ wine iexplore http://x1.c.lencr.org/ $ wine iexplore http://crl.usertrust.com/USERTrustRSACertificationAuthority.crl the launcher proceeds to download the file. Since these are popular certificate authorities, chances are that these CRLs are already cached on Windows. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://cellar-c2.services. | |clever-cloud.com/iologo-app | |/launcher2/5/iologo-launche | |r.exe Summary|wine is unable to launch a |iologo launcher cannot |.exe that just downloads a |download setup program |file | Keywords| |download Severity|normal |minor --- Comment #2 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- I assume the app is called iologo? "An app" is no use to anyone. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 --- Comment #3 from gerard.labadie(a)sysgroup.fr --- yes, and the website is https://www.iologo.io/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 Paul Gofman <pgofman(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman(a)codeweavers.com --- Comment #4 from Paul Gofman <pgofman(a)codeweavers.com> --- I debugged this a bit, the actual problem is not with revocation check per se but in its handling in CertVerifyCertificateChainPolicy(). The revocation check is performed from within CertGetCertificateChain() which returns the chain but gets errors from failed revocation checks in CERT_CHAIN_CONTEXT.TrustStatus.dwErrorStatus. That is also the case on Windows with the launcher (at least after clearing revocation cache with 'certutil -urlcache * delete'). But that doesn't fail the download. The launcher passes (CERT_CHAIN_POLICY_IGNORE_END_REV_UNKNOWN_FLAG | CERT_CHAIN_POLICY_IGNORE_CTL_SIGNER_REV_UNKNOWN_FLAG | CERT_CHAIN_POLICY_IGNORE_CA_REV_UNKNOWN_FLAG | CERT_CHAIN_POLICY_IGNORE_ROOT_REV_UNKNOWN_FLAG) in CERT_CHAIN_POLICY_PARA.dwFlags to CertVerifyCertificateChainPolicy() and then that succeeds on Windows (but currently fails on Wine where we do not handle those flags). Nullifying these flags in the debugger in the running launcher on Windows make it fail on Windows the same way. I am probably going to prepare patch for CertVerifyCertificateChainPolicy(). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 --- Comment #5 from Paul Gofman <pgofman(a)codeweavers.com> --- I made a MR for this (https://gitlab.winehq.org/wine/wine/-/merge_requests/7117) but it will wait until code freeze ends. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 Paul Gofman <pgofman(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |ec1cabca185dd050e1f27dac14b | |270947408bda8 --- Comment #6 from Paul Gofman <pgofman(a)codeweavers.com> --- Should be fixed by ec1cabca185dd050e1f27dac14b270947408bda8. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56559 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.1. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla