Re: Validator : not required attribute and fails if not found

2009-11-25 Thread Laurent Rustuel
Hello, Jerome Louvel a écrit : Hi Laurent, This isn't correct indeed. I've fixed the behavior and added a test case as well (see attached) in SVN trunk. Great, thanks for the quick fix. Laurent. -- Laurent Rustuel, Alten contractor for Genesys, an Alcatel-Lucent Company

RE: Validator : not required attribute and fails if not found

2009-11-23 Thread Jerome Louvel
Hi Laurent, This isn't correct indeed. I've fixed the behavior and added a test case as well (see attached) in SVN trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message

Validator : not required attribute and fails if not found

2009-11-18 Thread Laurent Rustuel
Hello, I have take a look at the new Validator class. Reading the method beforeHandle(Request request, Response response) I don't can't understand why, when an attribute is not required, it return a Status CLIENT_ERROR_BAD_REQUEST if the value is not found. But if the value is not required, you