users@jersey.java.net

Re: problems updating a resource with PUT

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 14 Apr 2008 09:01:23 +0200

On Apr 11, 2008, at 3:27 AM, Richard wrote:

> Sorry if this gets double posted but I forgot to set a title on
> this the first time I sent it and I haven't seen it come through
> yet so I don't know if there is some kind of basic filtering going
> on, if I'm not actually subscribed yet, or if gmail has just taken
> a dislike to me and is keeping mail from me....
>

No problem just one arrived :-)


> I'm using jersey .6.2 and I'm trying use http PUT requests to
> update a given object (foo) that is related to a user in a one-to-
> many way (one user, many foos). My PUT request updates the object
> correctly but when I access /resources/users/id/foos/ the
> particular foo that was just updated is no longer associated with
> the user.
> Further, when I examine the object with /resources/foos/id/ it no
> longer has a userRef generated.
>
> I've tried PUTing to /resources/users/id/foos/id/ as well as /
> resources/foos/id/ and the result is the same.
>
> I'm using Netbeans RESTful plugin generated code for interacting
> with my resources.
>
> any guidance?
>

Peter, any ideas what might be wrong?

Paul.
> thanks,
> -Richard
>