users@jersey.java.net

[Jersey] Re: HTTP 304 is silently dropping the entity

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Sat, 26 Nov 2011 11:12:54 -0800 (PST)

Hi Graham,

     Fair enough, but shouldn't Jersey throw an exception to indicate I
did something wrong instead of silently dropping parts of my response? :)

Gili

On 26/11/2011 2:43 AM, Graham Leggett [via Jersey] wrote:
> On 25 Nov 2011, at 22:10, Gili <[hidden email]
> </user/SendEmail.jtp?type=node&node=7033295&i=0>> wrote:
>
> > It's not clear what should happen if a user tries using a HTTP 304 in
> > response to a PUT.
>
> The 304 is what gets sent if the If-None-Match header is present and
> matches the ETag, and never has a body.
>
> Trying to add a body violates RFC2616, jersey is behaving correctly.
>
> Regards,
> Graham
> --
>
> >
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://jersey.576304.n2.nabble.com/HTTP-304-is-silently-dropping-the-entity-tp7032018p7033295.html
>
> To unsubscribe from HTTP 304 is silently dropping the entity, click
> here
> <http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7032018&code=Y293d29jQGJicy5kYXJrdGVjaC5vcmd8NzAzMjAxOHwxNTc0MzIxMjQ3>.
> NAML
> <http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



--
View this message in context: http://jersey.576304.n2.nabble.com/HTTP-304-is-silently-dropping-the-entity-tp7032018p7034462.html
Sent from the Jersey mailing list archive at Nabble.com.