You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/06/07 20:19:00 UTC

[jira] [Commented] (DISPATCH-941) Router is returning incorrect files from http get requests.

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

ASF subversion and git services commented on DISPATCH-941:
----------------------------------------------------------

Commit 3dbbafc2dc0e2dbd4aa90c1f1509da966360327e in qpid-dispatch's branch refs/heads/1.1.x from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=3dbbafc ]

DISPATCH-941: Router is returning incorrect files from http get

Bug in http-libwebsockets code. A partial HTTP handler such as we have needs to
call lws_callback_http_dummy() to fill in default HTTP behaviours. Without that
the LWS library was not properly informed of termination of HTTP transactions
causing confusion if a connection was re-used.

(cherry picked from commit c728d7f41c78ccc8db127b87c11470a5b9bc8c82)


> Router is returning incorrect files from http get requests.
> -----------------------------------------------------------
>
>                 Key: DISPATCH-941
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-941
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Routing Engine
>    Affects Versions: 1.0.1
>            Reporter: Ernest Allen
>            Assignee: Alan Conway
>            Priority: Major
>             Fix For: 1.1.0
>
>         Attachments: CaptureApache_angular.PNG, CaptureApache_angular.PNG, CaptureApache_woff2.PNG, CaptureApache_woff2.PNG, CaptureApache_woff2.PNG, CaptureDispatch_angular.PNG, CaptureDispatch_angular.PNG, CaptureDispatch_woff2.PNG
>
>
> When http requests are made from a Windows machine, the http response headers appear to be mixed up or for a different request. For example, when the browser requests the file OpenSans-Regular-webfont.woff2, the response has a content-type of text/javascript and an incorrect content-length. Here is the bad response: !CaptureDispatch_woff2.PNG!
> When the same browser on the same machine requests the same file from Apache tomcat, the response is correct:
> !CaptureApache_woff2.PNG!
> Another example: This time the request is for the javascript file angular.js. Here is the bad response from the router:
> !CaptureDispatch_angular.PNG!
>  
> And here is the correct response from tomcat for the same file:
> !CaptureApache_angular.PNG!
> The incorrect content-types and content-lengths returned by the router lead me to believe that the responses are getting mixed up.
> Possibly important note: Which requests are mixed up varies each time I reload the page. Sometimes files that failed on a previous page load will come down just fine. It doesn't always happen on the same files.
> This happens for all browsers I've tried on Windows. It does not happen for any browser when the request comes from my linux box.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org