Re: ResourceException.getMessage() also returns status description, code?

2008-10-24 Thread Stephan Koops
Hi Aron, AFAIK the Servlet API do not support the setting of a text like "Bad Request"; it ever using it's default text for the given code. I can't say what happens with "Your exception message goes here" in a Servlet application. best regards Stephan Aron Roberts schrieb: During my fir

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Stephan Koops
Hi Andrew, the percent is a reserved char for the percent encoding. Use "%25" instead of only "%". best regards Stephan || Andrew Herbert schrieb: Hello, I am having an issue accessing Files via the Directory Class when the filenames contain a 'percent' symbol. I get a 404 Not Found respon

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Andrew Herbert
Hi Stephan, Thanks for the prompt reply. Perhaps I should have been more specific. Let's say the Filename is /tmp/per%cent. When The Directory Resource is directed to /tmp as it's base it will display the problematic file as https://localhost/resturl/per%25cent";>per%25cent This I completely u

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Thierry Boileau
Hi Andrew, thanks you for your report, you're right there is a bug when the file name contains a "%" (I don't think it's the case for other special characters). I've just found it, and need some tests. It will available very soon. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ h

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Thierry Boileau
Hello Andrew, the fix is available in the svn repository. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Hi Stephan, Thanks for the prompt repl

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Andrew Herbert
Hello Thierry, Thanks for your very fast action. Much appreciated! Kind Regards, Andrew.

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Andrew Herbert
Hello again, The latest SVN version worked fine in my development environment (Windows) but did not work when deployed to AIX. Is it likely that I have done something wrong or is it possible the patch has only fixed Windows paths? Kind Regards, Andrew.

RE: Protocol should determine "confidentiality" of Request

2008-10-24 Thread Jerome Louvel
Hi all, Refactoring done in SVN trunk. Protocol#confidential property and Message#isConfidential() were added. Request#setConfidential() was removed. Let me know if it works for you. Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.re

RE: ResourceException.getMessage() also returns status description, code?

2008-10-24 Thread Jerome Louvel
Hi Aron, The actual behavior was inconsistent between the constructors with a 'throwable' parameter which were returning the status's description unchanged and others returning the result of Status#toString(). This should be fixed in SVN trunk, to behave as you expected. Best regards, Jerome Lo

Re: EJB 3

2008-10-24 Thread Jerome Louvel
Hi Jon, I'm not aware of any particular issue. You might want to check the Restlet-JPA project: http://trac.sarugo.org/restlet-jpa Best regards, Jerome Jonathan Hall a écrit : Hi, I'm evaluating my current stack and am interested using EJB3. Naturally, I still want to use restlet :). If a

Re: Restlet Spring and Guards

2008-10-24 Thread Gabriel Falkenberg
Hi, and thanks for your help. I think I'm finally starting to get a grip on how an application is supposed to be organized. The solution looks like this: >From web.xml: restservice com.noelios.restlet.ext.spring.RestletFrameworkServlet targetRestletBeanN

Re: EJB 3

2008-10-24 Thread Stephan Koops
Hi, one or two weeks ago I've see the following: http://openejb.apache.org >From its home page: "Apache OpenEJB is an embeddable and lightweight EJB 3.0 >implementation that can be used as a standalone server or embedded into >Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or

Re: Directory Class fails when percent symbol in Filename

2008-10-24 Thread Thierry Boileau
Hello Andrew, I've just fixed an issue regarding what I've fixed this morning... Could you give it a try? Could you also send us some file names that fail? Is it possible the patch has only fixed Windows paths? the code should be "OS unaware" (is it idiomatic?). Best regards, Thierry Boileau

Form Processing bug?

2008-10-24 Thread Cliff Binstock
I believe there is something wrong, or at least unpleasant in the Restlet Engine (V1.1 RC2). I am using the "language" as a form input. I have a simple test case (below) which mimics the form input. Input of this: http://localhost:8080/test?lang=all