Re: client-side support for Negotiate authentication scheme

2008-11-13 Thread Roman Geus
but that could be used for 1.2). Perhaps it could be time to put it somewhere in the Restlet code-base too. I was going to wait for the 1.1 release, but if Roman is doing some work on this type of problem too, we might as well try to coordinate our work. Best wishes, Bruno. Roman Geus wrote: Hi Jerome

Re: Missing bytes in entity body

2008-09-30 Thread Roman Geus
it work for you now? Sorry for the delay, because I have to do a lot of other things in the moment I do not read the mailing list emails fast. If you note in the subject that it's a problem for JAX-RS, than I will read it earlier perhaps. best regards Stephan Roman Geus schrieb: Hi Thierry

Re: Missing bytes in entity body

2008-09-29 Thread Roman Geus
Hi Thierry To my knowledge my example uses only Restlet classes, i.e. javax.ws.rs.core.Response I think the problem could be in org.restlet.ext.jaxrs.internal.provider.StringProvider.getSize(...). It returns the number of characters, but the docs of

Missing bytes in entity body

2008-09-26 Thread Roman Geus
Hi all I have run across a problem, where the last few bytes of the entity body are not transferred to the client. The problem occurs if the number of characters in the entity body does not match the number of bytes in the encoded string (in my case UTF-8). Example 1: @GET

Re: Missing bytes in entity body

2008-09-26 Thread Roman Geus
BTW: I was using Restlet 1.1rc2, the reported tests. Roman Roman Geus wrote: Hi all I have run across a problem, where the last few bytes of the entity body are not transferred to the client. The problem occurs if the number of characters in the entity body does not match the number

Re: Routing in Restlet JAX-RS applications

2008-09-23 Thread Roman Geus
Hi Stephan Yes it works now. Also regexp in path templates seem to work now. Many thanks! Roman Stephan Koops wrote: Hi Roman, does it work for you know? http://restlet.tigris.org/issues/show_bug.cgi?id=594 best regards Stephan Roman Geus schrieb: Hallo all I'm using restlet 1.1-m5

Re: Routing in Restlet JAX-RS applications

2008-09-17 Thread Roman Geus
- De : Roman Geus [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 août 2008 09:58 À : discuss@restlet.tigris.org Objet : Re: Routing in Restlet JAX-RS applications Hi Stephan Thanks for your reply and for looking into this. My expectation was, that path parameters should only be assigned

Re: client-side support for Negotiate authentication scheme

2008-08-28 Thread Roman Geus
properties. NegotiateFilter is based on Bruno Harbulot's SpnegoFilter. Roman Geus Cheers, Roman Stephan Koops wrote: Hi Roman, cool. Could you share the full filter class(es?) to be added to the Restlet API? best regards Stephan Roman Geus schrieb: Hi all I have been working on a Filter

client-side support for Negotiate authentication scheme

2008-08-26 Thread Roman Geus
Hi all I have been working on a Filter that implements client and server side HTTP Negotiate and Basic authentication. The code is based on Bruno Harbulot's nice SpnegoFilter. Everything works fine so far. However to get the client-side authentication working I had to change the

Re: Routing in Restlet JAX-RS applications

2008-08-22 Thread Roman Geus
message about UriInfo.getPath(). If it is ok, I will use your code fragments as JUnit test cases. best regards Stephan P.S.: I've had a small holiday from tuesday, so sorry for the delay. Roman Geus schrieb: Hallo all I'm using restlet 1.1-m5 and I have a problem with routing http requests

Re: Routing in Restlet JAX-RS applications

2008-08-21 Thread Roman Geus
. The above URL also matches the template @Path({project}/{repository}/schema/{schema}), and in this case the parameters are assigned as expected. However since two resource methods match the given URL, often the wrong one (repository) is called. Bug or feature? Best regards, Roman Roman

Problem with UriInfo.getPath()

2008-08-21 Thread Roman Geus
uriInfo.getPath():http://localhost:8182/test/example uriInfo.getAbsolutePath():http://localhost:8182/test/example According to the docs UriInfo.getPath() should return a relative path. Cheers, Roman -- Roman Geus Paul Scherrer Institut AIT Scientific Computing 5232 Villigen PSI Switzerland Tel: +41 56

Routing in Restlet JAX-RS applications

2008-08-19 Thread Roman Geus
Hallo all I'm using restlet 1.1-m5 and I have a problem with routing http requests to JAX-RS resource methods: My resource class looks as follows: @Path(admin) public class RestAdminServiceResource { /** * Provides both static and dynamic, per-request information, about the *

Re: Setting a Filter for a JAX-RS resource class or application

2008-08-12 Thread Roman Geus
://www.noelios.com -Message d'origine- De : Roman Geus [mailto:[EMAIL PROTECTED] Envoyé : lundi 11 août 2008 17:05 À : discuss@restlet.tigris.org Objet : Setting a Filter for a JAX-RS resource class or application Hi all I would like to set a Filter for a JAX-RS resource or application

Re: HTTP Negotiate and Basic authentication

2008-08-11 Thread Roman Geus
://restlet.tigris.org/issues/show_bug.cgi?id=457 Roman Geus wrote: Hello all I'm new to Restlet and would like to implement a REST interface for an existing application using Restlet and JAX-RS. I need to support both HTTP Negotiate and HTTP Basic authentication vs an Active Directory server

HTTP Negotiate and Basic authentication

2008-08-08 Thread Roman Geus
? Any help with this (example code, hints, pointers, ...) would be highly appreciated. Thanks, Roman -- Roman Geus Paul Scherrer Institut AIT Scientific Computing 5232 Villigen PSI Switzerland Tel: +41 56 310 54 85 Fax: +41 56 310 36 49 e-Mail: [EMAIL PROTECTED]

Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
Hi all I'm new to Restlet and I would like to implement a REST interface for my Java application using the JAX-RS API. My application uses the JAAS framework for authentication vs a Windows Active Directory and also for authorization. I have written a custom Guard for doing HTTP basic

Re: Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
the Restlet team plans to redesign the authentication etc., it was moved to later, after Restlet 1.1, to have enough time for implementing and testing. Roman Geus schrieb: Hi all I'm new to Restlet and I would like to implement a REST interface for my Java application using the JAX-RS API

Re: Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
it with the current version of Restlet. One problem is, that the resource classes will have Restlet specific code in it and will not be portable to other JAX-RS implementations. Best regards, Roman best regards Stephan Roman Geus schrieb: Hello Stephan Thanks for your reply. Does this mean