RE: SlingPostServlet saves operations that throw an error in the log but return 200 responses

2010-03-31 Thread Clemens Wyss
in the sense of REST I would support mike's objection. But maybe the "by design"-explanantion can make me/us rethink...? > -Original Message- > From: Michael Yin [mailto:yincr...@gmail.com] > Sent: Wednesday, March 31, 2010 3:07 AM > To: users@sling.apache.org > Subject: Re: SlingPostServ

46 Line Blog

2010-03-31 Thread Nicolas Delsaux
Like I already told, I'm trying to evaluate Sling. For now, i must confess I didn't go that far in my evaluation : I'm stuck in the 46 lines blog sample, hopping it'll learn me some of the Sling concepts. What I've done so far is - download sling distribution available at http://sling.apache.org/s

Re: SlingPostServlet saves operations that throw an error in the log but return 200 responses

2010-03-31 Thread Alexander Klimetschek
On Wed, Mar 31, 2010 at 03:06, Michael Yin wrote: > I would argue that errors should be given an appropriate response. Most of > the other actions that I've seen return appropriate error responses, such as > doing xpath searches with improper syntax returns a 500 or when a resource > isn't found,

Re: Document "no property changes on move or copy"?

2010-03-31 Thread Alexander Klimetschek
On Tue, Mar 30, 2010 at 22:15, Ray Davis wrote: > All operations performed by the SlingPostServlet are mutually exclusive. In > particular, a request which moves a node or copies a node cannot change or > add a property of that node. > ... > When I stop to think about it, this seems OK. But since

Re: 46 Line Blog

2010-03-31 Thread Bertrand Delacretaz
Hi, On Wed, Mar 31, 2010 at 10:20 AM, Nicolas Delsaux wrote: > ...When I reach this point, the bundle appears at installed, but not > started due to unresolved dependency > !! org.apache.sling.api.resource,version=2.0.9 from -- Cannot be resolved > > What do I have to do to make it work ? > Shoul

Observation manager stops suddenly

2010-03-31 Thread Daniel, de la Cuesta Navarrete
Hi, We are using Sling 5 with Glassfish, we have a lot of post processor operations controled by the Jackrabbit Observation Manager. Something like that: public class MyServiceImpl implements MyService, EventListener { /* * @see javax.jcr.observation.EventListener */ public vo

Re: Observation manager stops suddenly

2010-03-31 Thread Vidar Ramdal
On Wed, Mar 31, 2010 at 1:35 PM, Daniel, de la Cuesta Navarrete wrote: > Hi, > > We are using Sling 5 with Glassfish, we have a lot of post processor > operations controled by the Jackrabbit Observation Manager. > > Something like that: > > public class MyServiceImpl implements MyService, EventLis

Re: SlingPostServlet saves operations that throw an error in the log but return 200 responses

2010-03-31 Thread Michael Yin
I will try setting :status to "standard" and see what happens. However, currently I have not set it at all. -mike On Wed, Mar 31, 2010 at 4:46 AM, Alexander Klimetschek wrote: > On Wed, Mar 31, 2010 at 03:06, Michael Yin wrote: > > I would argue that errors should be given an appropriate respon