setExisting works as advertised?

2009-06-05 Thread webpost
Hi,

I'm evaluating restlet and I like what I see, especially the 2.0 version.

If I understand ServerResource.setEx​isting(false) correctly, the restlet 
infrastructure should send back a 404 when I call setExisting(false) on a 
request (called within the doInit method)

Reproducable with 2.0m3 by navigating to /firstResource/items/333 on a server 
restart. Server is returning 500 because the example is throwing an exception 
in toXml() (because item is null), but that is only the symptom -- I would 
think it should never get there because the example is calling 
setExisting(false) in doInit.

Jim

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2359500


Re: setExisting works as advertised?

2009-06-05 Thread Thierry Boileau
Hello Jim,

this bug is actually covered by this issue = 
http://restlet.tigris.org/issues/show_bug.cgi?id=822
It will be fixed soon.

best regards,
Thierry Boileau

 Hi,

 I'm evaluating restlet and I like what I see, especially the 2.0 version.

 If I understand ServerResource.setEx​isting(false) correctly, the restlet 
 infrastructure should send back a 404 when I call setExisting(false) on a 
 request (called within the doInit method)

 Reproducable with 2.0m3 by navigating to /firstResource/items/333 on a server 
 restart. Server is returning 500 because the example is throwing an exception 
 in toXml() (because item is null), but that is only the symptom -- I would 
 think it should never get there because the example is calling 
 setExisting(false) in doInit.

 Jim

 --
 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2359500



--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2359621