|
From: Bill B. <bb...@re...> - 2008-04-07 18:20:53
|
Oh geez. Thanks Thomas!
here I thought I was going to be able to release today....
:)
I'll have something out tomorrow.
Thomas T. Cremers wrote:
>
> Hello,
>
> A couple of days ago I ran into a problem with throwing WebApplication
> examples with a response object:
>
> throw new WebApplicationException(Response.status(412)
>
> .type("text/plain;charset=utf-8")
>
> .entity("Something went wrong").build());
>
> Throwing this exception would give a text/plain body with the entity
> body but with http code 200. Throwing the same exception without an
> entity would give the expected (412 response with an empty body).
>
> After a little code browsing I found the problem in Dispatcher.java
> invoke method. I created a patch file from revision 133 attached to this
> email.
>
> Regards,
>
> Thomas Cremers
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Resteasy-developers mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|