You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Daniel Wirtz (JIRA)" <ji...@apache.org> on 2008/05/01 18:14:57 UTC

[jira] Resolved: (ASYNCWEB-12) AsyncWeb does not understand the Status-Header e.g. sent by FastCGI backends.

     [ https://issues.apache.org/jira/browse/ASYNCWEB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Wirtz resolved ASYNCWEB-12.
----------------------------------

    Resolution: Won't Fix

Of course the response is not valid ootb but when prepending a "HTTP/1.1 200 OK" line on top of it, the FastCGI response becomes a valid HTTP response that can be parsed by asyncweb. I did not know that the status-header is such a non-standard behaviour but as I already said, I found out that it is easy to work around the status header by casting to a MutableHttpResponse and setting the status from the status header on my own. Sorry, no fix required then.

> AsyncWeb does not understand the Status-Header e.g. sent by FastCGI backends.
> -----------------------------------------------------------------------------
>
>                 Key: ASYNCWEB-12
>                 URL: https://issues.apache.org/jira/browse/ASYNCWEB-12
>             Project: Asyncweb
>          Issue Type: Bug
>          Components: Common
>         Environment: AsyncWeb 0.9.0 CVS used in AsyncFCGI
>            Reporter: Daniel Wirtz
>            Priority: Trivial
>
> When a Status header is provided, AsyncWeb does not transform it into the equivalent HTTPStatus in a HttpResponse.
> A response from a FastCGI backend could look like this:
> Content-Type: text/html\r\n
> Status: 404\r\n
> \r\n
> File not found!
> or
> Content-Type: text/html\r\n
> Status: 404 Some Custom Message\r\n
> \r\n
> File not found!
> in PHP this looks like:
> header("404: Some Custom Message"); or
> header("HTTP/1.1 404 Not Found"); etc.
> -> both produce the Status-Header.
> As far as I know the webserver (this would be asyncweb in this case) converts the status header into the correct http status (e.g. "HTTP/1.1 404 Not Found"). I'm using PHP a lot, the status header is the default behaviour and Apache / Lighttpd handle it this way (even with mod_php instead of FastCGI). I don't want to preparse the response because of unneccessary double checking instead of simply feeding it into a HttpResponseDecoder. However, I think the status header is not part of the http specification but since it's used a lot, it would make sence.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.