Charlie-the-exile
2011-Jan-06 19:50 UTC
[Wine] Problem with Windows app accessing internet
Hi I have been using MCC Pilotlog with some success in Wine recently, but have run into a vexatious issue. One of the features of the application is that it can log into a company crew information system and retrieve flight information into the log. I have tested this on a windows VM, and it works fine. However, under Wine, we get error 445 and then a crash. I am a bit surprised, as I thought that the IE-mimicking facilities in Wine would be able to cope. I've contacted the MCC developers about the issue, and they cannot throw too much light on the subject, but suggest that this is a code chink that may be causing the problem: Code: For Each HTMLi In WebBr.Document.getElementsByName("Id") HTMLi.Value = TxtLoginName Next For Each HTMLi In WebBr.Document.getElementsByName("Pass") HTMLi.Value = TxtPassword Next For Each HTMLi In WebBr.Document.getElementsByName("B1") HTMLi.Click Exit For Next Here's some terminal output copied at the relevant time: Code: fixme:ole:OleIconToCursor (0x400000,0x60072), partially implemented. fixme:shdocvw:navigate_url Unsupported args (Flags 0x111b4d30:10; TargetFrameName 0x111b4d40:10) fixme:urlmon:URLMoniker_BindToObject use running object table fixme:shdocvw:BindStatusCallback_OnProgress status code 1 fixme:shdocvw:BindStatusCallback_OnProgress status code 2 fixme:shdocvw:BindStatusCallback_OnProgress status code 11 fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT") fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT") fixme:shdocvw:BindStatusCallback_OnProgress status code 14 fixme:system:SetProcessDPIAware stub! fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) fixme:iphlpapi:NotifyAddrChange (Handle 0x884e914, overlapped 0x884e918): stub fixme:ntdll:NtLockFile I/O completion on lock not implemented yet fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x111b17b0)->((null) 1 0x33d3c0 (nil)) fixme:shdocvw:ClOleCommandTarget_QueryStatus command_0: 27, 0x0 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 0033d36c fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_USERAGENT fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_PALETTE fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x1166b190)->() fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33d390) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_IsNoCacheResponse (0x1166b190)->(0x33c634) fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:shdocvw:DocHostUIHandler_GetDropTarget (0x111b17b0) fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x116c10e8)->() fixme:mshtml:nsChannel_SetResponseHeader (0x1166b190)->("content-type" "text/html; CHARSET=iso-8859-1" 1) fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) fixme:mshtml:nsURI_SetUserPass default action not implemented fixme:advapi:FileEncryptionStatusW (L"C:\\users\\charlie\\Application Data\\wine_gecko\\Cache" 0x33cb78): stub fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented fixme:advapi:SetNamedSecurityInfoW L"C:\\users\\charlie\\Application Data\\wine_gecko\\Cache.Trash\\Trash\\Cache" 1 536870916 (nil) (nil) 0x116cf19c (nil) fixme:mshtml:nsURI_SetUserPass default action not implemented fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33dd30) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116b9b00)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116ba1a0)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x1167fab8)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116aeb70)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x11685dd0)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116b8418)->(0x33d850 0x33d828 0) fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x116c17b0)->(0x33d850 0x33d828 0) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 28 fixme:wininet:InternetLockRequestFile STUB fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_GetContentLength (0x11685c50)->(0x33cf7c) fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_IsNoCacheResponse (0x116c10e8)->(0x33ce4c) fixme:resource:GetGuiResources (0xffffffff,0): stub fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_GetContentLength (0x116b8358)->(0x33cf7c) fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_GetContentLength (0x11685d28)->(0x33cc1c) fixme:wininet:InternetLockRequestFile STUB fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_GetContentLength (0x116997b0)->(0x33cf7c) fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:wininet:CommitUrlCacheEntryInternal entry already in cache - don't know what to do! fixme:mshtml:nsURI_SetUserPass default action not implemented fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046} fixme:shdocvw:PropertyNotifySink_OnChanged unimplemented dispid 1005 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046} fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {de4ba900-59ca-11cf-9592-444553540000} fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 35 fixme:mshtml:nsChannel_IsNoCacheResponse (0x1166b190)->(0x33d814) fixme:mshtml:HTMLDocument3_getElementsByName (0x111e8b18)->(L"Id" 0x33e390) fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} fixme:ole:OLEPictureImpl_FindConnectionPoint no connection point for {33ad4f92-6699-11cf-b70c-00aa0060d393} I have been able to use the target website with the Wine IE browser, after changing the user-agent string. All input gratefully received! Charlie
Charlie-the-exile
2011-Jan-14 07:48 UTC
[Wine] Re: Problem with Windows app accessing internet
One more thing: I have had to set Windows version as Win 7 in winecfg, as the XP and Vista options did not work! Charlie
On 1/6/11 12:50 PM, Charlie-the-exile wrote:> Hi > > I have been using MCC Pilotlog with some success in Wine recently, but have run into a vexatious issue. > > One of the features of the application is that it can log into a company crew information system and retrieve flight information into the log. I have tested this on a windows VM, and it works fine. > > However, under Wine, we get error 445 and then a crash. I am a bit surprised, as I thought that the IE-mimicking facilities in Wine would be able to cope. > > I've contacted the MCC developers about the issue, and they cannot throw too much light on the subject, but suggest that this is a code chink that may be causing the problem: > > > Code: > For Each HTMLi In WebBr.Document.getElementsByName("Id") > HTMLi.Value = TxtLoginName > Next > > For Each HTMLi In WebBr.Document.getElementsByName("Pass") > HTMLi.Value = TxtPassword > Next > > For Each HTMLi In WebBr.Document.getElementsByName("B1") > HTMLi.Click > Exit For > Next > > > > Here's some terminal output copied at the relevant time: > > > Code: > fixme:ole:OleIconToCursor (0x400000,0x60072), partially implemented. > fixme:shdocvw:navigate_url Unsupported args (Flags 0x111b4d30:10; TargetFrameName 0x111b4d40:10) > fixme:urlmon:URLMoniker_BindToObject use running object table > fixme:shdocvw:BindStatusCallback_OnProgress status code 1 > fixme:shdocvw:BindStatusCallback_OnProgress status code 2 > fixme:shdocvw:BindStatusCallback_OnProgress status code 11 > fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT") > fixme:wininet:set_cookie persistent cookies not handled (L"expires=Sat, 08 Jan 2011 01:42:15 GMT") > fixme:shdocvw:BindStatusCallback_OnProgress status code 14 > fixme:system:SetProcessDPIAware stub! > fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) > fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 300)) > fixme:iphlpapi:NotifyAddrChange (Handle 0x884e914, overlapped 0x884e918): stub > fixme:ntdll:NtLockFile I/O completion on lock not implemented yet > fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x111b17b0)->((null) 1 0x33d3c0 (nil)) > fixme:shdocvw:ClOleCommandTarget_QueryStatus command_0: 27, 0x0 > fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25 > fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 > fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 0033d36c > fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_USERAGENT > fixme:mshtml:OleControl_OnAmbientPropertyChange not supported AMBIENT_PALETTE > fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} > fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag > fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x1166b190)->() > fixme:shdocvw:ClientSite_GetContainer (0x111b17b0)->(0x33d390) > fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046}There are many bug reports with this exact GUID in them. Time to file an additional report. BTW, this is used for to show a possible certificate to site mismatch dialog box. James McKenzie
Charlie-the-exile
2011-Jan-15 20:01 UTC
[Wine] Re: Problem with Windows app accessing internet
Thanks, James Can you tell me how to see the GUID from the information I have posted above? I'd like to take a look at other bugs (I have already filed a new one: http://bugs.winehq.org/show_bug.cgi?id=25771 Charlie