|
From: Thomas T. C. <ttc...@gm...> - 2008-04-07 15:45:27
Attachments:
Dispatcher.java.diff
|
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
|
|
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
|
|
From: Bill B. <bb...@re...> - 2008-04-07 19:43:22
|
K, if u download BETA 2, everything should be cool.
Bill Burke wrote:
> 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
|
|
From: Thomas C. <ttc...@gm...> - 2008-04-07 19:23:29
|
Hey Bill,
That's fast! I will update tomorrow.
Thanks,
Thomas
On Apr 7, 2008, at 9:08 PM, Bill Burke wrote:
> K, if u download BETA 2, everything should be cool.
>
>
>
> Bill Burke wrote:
>> 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
|