4 Replies Latest reply on Jul 18, 2011 10:58 AM by Stefano Nichele

    HTTP Status code 308 is converted in HTTP 500

    Stefano Nichele Newbie

      Hi All,

      i'm starting to use mod_cluster 1.1.2 with tomcat as replacement of mod_jk.

      All was working fine but now i have found an bad behavior that is stopping me in adopting mod_cluster ( :-( )

       

      My application implements something like a resumable http upload using 308 as status code for resume (see for instance http://code.google.com/apis/gdata/docs/resumable_upload.html).

      Important thing is that we return 308 to the client and it seems mod_cluster doens't handle it correclty (and indeed 308 is not a standard HTTP status code). In the apache access log i have:

       

      xx.xx.xx.xx- - [16/Jul/2011:02:57:29 -0700] "POST /upload HTTP/1.1" 308 - "-" "Jakarta Commons-HttpClient/3.1"

       

      but the client receives error status code 500.

       

      I did a quick test using 307 instead of 308 and it works fine.

       

      I'm supposing mod_cluster converts in 500 any  not standard status code. Is it right ?

       

      If yes,  is it possible to add an option to made mod_cluster "less formal" ?

      But now this is a stopper for me since i can not change how my application works, could you help me in patching mod_cluster code in order to have it accepting status 308 ?

      Otherwise, if you think this could be consider a bug, let me know and i'll file it and, if you point me on the right direction, i'll be happy to fix it.

       

      In attachment error.log for the request.

       

      Thanks in advance

      stefano