You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2011/11/30 20:59:40 UTC

[jira] [Commented] (WICKET-4274) Issue with IE browsers and Ajax Requests, body data is not sent to server. Client experiences hang

    [ https://issues.apache.org/jira/browse/WICKET-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160287#comment-13160287 ] 

Martin Grigorov commented on WICKET-4274:
-----------------------------------------

Please try to reproduce it with a quickstart on not so expensive application server ;-)
Also try with upgrade to 1.4.19, or 1.5.3.
                
> Issue with IE browsers and Ajax Requests, body data is not sent to server.  Client experiences hang
> ---------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4274
>                 URL: https://issues.apache.org/jira/browse/WICKET-4274
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>         Environment: Server: IBM Websphere 6 with IHS plugin.  Wicket 1.4.13.  Java6.    The client side is mostly Internet Explorer 8, 9.  Compatibility and Non Compat modes.
>            Reporter: Berlin Brown
>              Labels: ajax, internetexplorer, wicket
>
> I am experiencing an issue where the browser is not submitting POST data from an ajax request and so the server waits for it and hangs.  The browser, mostly IE8 will send the header information and the content-length is 36 but the server never receives that 36 bytes of data.
> I see the issue on IE8 and IE9 with and without compatibility mode.
> But I DON'T see the error on other browsers.
> It happens about 10% of all the requests out of 100,000 requests.
> What would cause this issue?  IE bug? IE bug with ajax requests?
> It seems to happen mostly from the client side.  Is it possible that Internet Explorer has some kind of bug where it won't send that data?
> I read somewhere that IE can only have one connection to the server, maybe two are being opened.
> Here is a snippet from the framework code:
>     Wicket Java Code: 
>          dropDownComponent.add( new AjaxFormComponentUpdatingBehavior( "onclick" ) {
>             
>             
>             @Override
>             protected void onUpdate( final AjaxRequestTarget target ) {
>                 target.addComponent( someForm );
>             } // End of the method //
>             
>         } );  
>     wicket-ajax.js:
>     ...
>     Javascript call on the client-side:
>      
>     1. t.open("POST", url, this.async);
>     2. t.onreadystatechange = this.stateChangeCallback.bind(this);
>     3. t.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
>     4. // set a special flag to allow server distinguish between ajax and non-ajax requests
>     5. t.setRequestHeader("Wicket-Ajax", "true");
>     6. t.setRequestHeader("Accept", "text/xml");
>     7. t.send(body);
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    POST          
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Accept: text/xml                                                                
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Accept-Language: en-us                                                  
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    wicket-ajax:  true                                                                    
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Referer: https://data.com/l/launch/                              
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    wicket-focusedelementid: id1924                                         
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Content-Type: application/x-www-form-urlencoded                                       
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Accept-Encoding: gzip, deflate                                          
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8)                                                 
>     
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Content-Length: 36                                                      
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Cache-Control: no-cache                                                                
>     ÝMon Nov 28 12:36:24 2011¨ 000ee03c 0000999a - DETAIL:    Cookie:       
>     
> ...
>     The request information is SENT but no BODY data.
> ...
> Arch Configuration:
> Server: IBM Websphere 6 with IHS plugin.  Wicket 1.4.13.  Java6.    The client side is mostly Internet Explorer 8, 9.  Compatibility and Non Compat modes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira