users@jersey.java.net

Re: [Jersey] Request.evaluatePreconditions and If-None-Match:*

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Mon, 19 Jan 2009 17:25:05 -0800 (PST)

I hope I didn't jump the gun, but upon taking at the Jersey source-code I
don't think it is technically possible to get this to work. I filed
https://jersey.dev.java.net/issues/show_bug.cgi?id=185 but I believe this is
actually a bug in the specification. It's my understanding that Marc Hadley
reads this mailing list so hopefully he will run across this post.

Gili


Gili wrote:
>
> Hi,
>
> My client issues an HTTP PUT with If-None-Match: * because it wishes to
> ensure the operation only proceeds if the resource does not already exist.
> I'm not sure how to implement this using Request.evaluatePreconditions on
> the server side. I want to be able to support both If-None-Match and
> If-Match headers on the server.
>
> If the resource doesn't exist then I can't invoke
> Request.evaluatePreconditions(EntityTag) because I have no EntityTag. If I
> omit this call altogether but the client specifies If-Match: <value> then
> I will fail to handle this header and the call with go ahead even though
> it should not. Any ideas?
>
> Thank you,
> Gili
>

-- 
View this message in context: http://n2.nabble.com/Request.evaluatePreconditions-and-If-None-Match%3A*-tp2184385p2184454.html
Sent from the Jersey mailing list archive at Nabble.com.