Re: External JAXB Context resolver

2012-07-11 Thread Thierry Boileau
Best regards, Thierry Boileau Hi, I want to configure my Restlet Application to start with a JaxbContext provided through configuration. Lets say, I want to use MOXy (http://www.eclipse.org/eclipselink/moxy.php) as my Jaxb context resolver. Is it possible to configure this externally, say

Potential security issue - fixed in current snapshots.

2012-07-11 Thread Thierry Boileau
, and the current master. In case you customize the status filter, we also suggest you to call the org.restlet.engine.util.StringUtils#htmlEscape method in order to prevent such potential issue. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds

Re: Empty server response in 2.1 RC5

2012-07-11 Thread Thierry Boileau
Hello all, thanks for mentioning this topic, I've updated the migration guide. Best regards, Thierry Boileau --tim On Tue, Jul 10, 2012 at 10:41 PM, Robert Brewer rbre...@lava.net wrote: Ioannis Mavroukakis wrote: Hi Robert, you say most so that makes me assume some of them work

Re: Error in org.restlet.ext.odata.Generator?

2012-07-05 Thread Thierry Boileau
Hello Bjorn, the thiird parameter is the name of the Servce class, not the full path including packages. There is an issue for that point : https://github.com/restlet/restlet-framework-java/issues/383 Best regards, Thierry Boileau Generator from org.restlet.ext.odata.Generator , has a third

Re: Restlet java beans pojo gwt

2012-07-05 Thread Thierry Boileau
and client) otherwise the automatic serialization may fail. In the second case, I think I will use one of the textual formats you mention. I hope this will help you. Best regards, Thierry Boileau Hi all, Sorry for the long text but I have to provide the such information in order to solve my doubt

Re: client times out, how does server know?

2012-06-27 Thread Thierry Boileau
Hello Christine, Interesting and open question. As far as i know, there is no easy way to detect the client timeout except at the time of writing to the socket. There are some papers on the subject though ( www.hpl.hp.com/personal/Lucy_Cherkasova/papers/ieee-dtoc.ps). Best regards, Thierry

Re: Date error

2012-06-20 Thread Thierry Boileau
#DevGuideCustomSerialization ). Best regards, Thierry Boileau I am updating my entity using: u.setLastAccessDate(new Date()); the datetime set to the entity is: Mon Jun 18 11:39:39 CEST 2012 but the sent to the server when I call service.updateEntity(u); is two hours more. How to fix it? Thank

Re: Re: ServerResource getRequest() returns null

2012-06-20 Thread Thierry Boileau
instances of ServerResource. I've entered an issue : https://github.com/restlet/restlet-framework-java/issues/610 Best regards, Thierry Boileau On my resource: public class UserActsServerResource extends ServerResource implements UserActsResource {... I am able to use: public final Representation

Re: Re: Date error

2012-06-20 Thread Thierry Boileau
great! you're welcome. Best regards, Thierry Boileau I solved it !!! Our server was changing it to GMT time. Thank you. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2972217

Re: ClientResource, wrap and other best practices

2012-06-09 Thread Thierry Boileau
Hello Grant, I think you can also call ClientResource#getResponse()#abort : http://www.restlet.org/documentation/2.1/jse/api/org/restlet/representation/Representation.html#release%28%29 Best regards, Thierry Boileau Anyone else have any thoughts

Re: InputStream loses line break

2012-06-09 Thread Thierry Boileau
@fichier.txt) Best regards, Thierry Boileau Hi I am using curl -X POST uri -d @textfile to post the content of a file to a restlet resource. The representation I get loses the line break. Does anyone know what I'm doing wrong ? This is my post method @Post public String

Re: Dismayed GAE GWT example project

2012-05-28 Thread Thierry Boileau
to GAE. It just works for me. Could you have a look at the GAE console? Is there any log trace? Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2967420

Re: Re: Anchor # (hash) in querystring

2012-05-16 Thread Thierry Boileau
Hello, instead of the fragment part, you can use the query part. Best regards, Thierry Boileau Hello Thierry, Thanks for your answer, I was thinking something like that. When I look at the request the complete request string is send. The problem I am facing is that I want to redirect

Re: Access to Request in Enroler

2012-05-16 Thread Thierry Boileau
according to the kind of resources targetted or kind of operations? Best regards, Thierry Boileau This interface is too narrow: public void enrole(ClientInfo clientInfo); I need access to the Request in this method and I don't like the ThreadLocal solution. Enhancement issue on github

Re: Is it possible to (easily) have authenticated/non-authenticated versions...

2012-05-16 Thread Thierry Boileau
rootRouter.attach(/v2, router); // not guarded return rootRouter; } Best regards, Thierry Boileau Thanks again for the update - I will continue to work on this, although right now I am in the midst of trying to get oAuth2 to work, so it may be a while before I have a real response. RB

Re: No buffer space available (maximum connections reached?)

2012-05-16 Thread Thierry Boileau
Hello Arjohn, sorry for the delay, I ask Jérôme to take a closer look at your suggestion. Best regards, Thierry Boileau Hi all, me again :-) I have debugged this issue further and have probably found a simple fix. I've migrated from 2.0.x to 2.1.x in the mean time and both version

Re: File extensions content negotiation for POST

2012-05-09 Thread Thierry Boileau
/restlet/restlet-framework-java/issues/582 Best regards, Thierry Boileau Thanks for the response. I have no trouble getting the right format by setting the Accept header appropriately. Instead, I'm asking about setExtensionsTunnel. If I enable this, I don't have to set the Accept header, I can

Re: File extensions content negotiation for POST

2012-05-09 Thread Thierry Boileau
|| mediaTypeFound || languageFound) { resourceRef.setExtensions(extensions); extensionsModified = true; } } Best regards, Thierry Boileau Hello Lee, Sorry I misunderstood your question. You're right

Re: Re: Jetty + Webapp + Restlet

2012-05-08 Thread Thierry Boileau
() ); restletContext.addServlet( restletHolder, /* ); Best regards, Thierry Boileau 2012/4/27 Kevin Minder kmin...@gmail.com I think I've figured it out. The key seems to be that to have the level of control I want for my use case, I need to use the ServletAdapter instead of the ServerServlet. I've attached

Re: Restlet Put Method infinite loop

2012-05-07 Thread Thierry Boileau
. Don't update your code, just complete the build path with the jars of the extension and its dependencies. You can have a look here : http://wiki.restlet.org/docs_2.1/13-restlet/37-restlet.html Best regards, Thierry Boileau I am also getting the same error: May 4, 2012 1:08:24 AM

Re: mounting resources and final slash

2012-05-07 Thread Thierry Boileau
Hello all, thanks Ioannis for your answer. Daniele, you can find more details here : http://wiki.restlet.org/docs_2.1/13-restlet/326-restlet.html Best regards, Thierry Boileau Hi Danielle, I suppose you can, by setting the defaultMatchMode property on Router to org.restlet.routing.Template

Re: Save authentication data in Android between acivities

2012-05-07 Thread Thierry Boileau
state is therefore kept entirely on the client. Best regards, Thierry Boileau Hi. When i launch my app appears activity (AuthActivity) where i enter my login and password. I authorize on the server and move on to another activity where I'm trying to get a resource from the server

Re: Re: restlet problem. urgent! Please help me!

2012-05-02 Thread Thierry Boileau
is started or not. Could you check that? Havind said that, we have to make some checks also, I've entered an issue for that : https://github.com/restlet/restlet-framework-java/issues/579. Best regards, Thierry Boileau Thank you for your answer. The version of my restlet framework is as below

Re: Content Range with Output Representation

2012-04-20 Thread Thierry Boileau
from Guava should perform correctly, if not, you can complete the one I sent to you). Best regards, Thierry Boileau bjorn On Apr 18, 2012, at 12:07 PM, Thierry Boileau wrote: Hello Bjorn, By messing with the code you sent, this seems to be a function of setting the representation size

Re: restlet problem. urgent! Please help me!

2012-04-19 Thread Thierry Boileau
Hello, can you send us a sample app in order to reproduce the error? What is your version of the Restlet framework? Best regards, Thierry Boileau Does anyone meet this problem? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId

Re: Restlet Framework. Serialization. Don't understand how send and receive object

2012-04-18 Thread Thierry Boileau
--address=192.168.2.4 /media/workspace/gwt/testSultan/war I hope this will help you. Best regards, Thierry Boileau When i send to server simple object of Authentication class, this error also show me. But then i change my AuthenticationServerResource, i receive not object of Authentication

Re: Internal HTTP request

2012-04-11 Thread Thierry Boileau
an issue for that ( https://github.com/restlet/restlet-framework-java/issues/374). Best regards, Thierry Boileau Thanks for your reply. Unfortunately your example throws an exception in my application. My (simplified) application looks like this: package test; import java.util.HashSet; import

Re: How send object from client to server

2012-04-11 Thread Thierry Boileau
extension, the default converter, etc). Having said that, your problem may be linked with the fact that your are issuing calls from Android, I check that. Best regards, Thierry Boileau Thank you very much. Now I began to understand. If I have questions, I'll write more -- View this message

Re: Content Range with Output Representation

2012-04-11 Thread Thierry Boileau
. As a first quick answer, I wonder what server connector are you using? The internal one, or another such as jetty, simple, servlet, etc? What version of Restlet are you using? Best regards, Thierry Boileau -- http://restlet.tigris.org/ds

Re: Content Range with Output Representation

2012-04-11 Thread Thierry Boileau
//Note: I'm not actually using the range found above, but I've been playing with it, so I thought I'd include it. Actually, ranges are not intended to be used, this aspect should remain automagic. :) Best regards, Thierry Boileau Hello Bjorn, I posted this message yesterday, but it never

Re: Content Range with Output Representation

2012-04-11 Thread Thierry Boileau
Hi Bjorn, that's right, I primarily use the restlet 2.1 version, which does not support this constructor I think. I'm not sure this has an impact. Best regards, Thierry Boileau Thierry, The first thing I noticed in your code is that you are using the OutputRepresentation constructor

Re: Potential Namespace Bug in SaxRepresentation??

2012-04-06 Thread Thierry Boileau
Hello Nicholas, thanks a lot for pointing this bug. I've updated the XmlWriter#writeAttributes method. It takes care of the declaration of the namespace. I've updated the 2.0 and 2.1 branches, and the 2.2 master. Best regards, Thierry Boileau Look at this further. It seems the problem may

Re: @Post(json) resource method doesn't send JSON (using cr.wrap())

2012-04-06 Thread Thierry Boileau
Hello vish, I guess you may need to update the classpath of your application, in order to add one of the extensions that handle JSON serialization/deserialization: - org.restlet.ext.json.jar (and its depedencies), or - org.restlet.ext.jackson.jar (and its depedencies) best regards, Thierry

Re: Bad Request exception bug

2012-04-06 Thread Thierry Boileau
it looks like the response contains a www-authenticate header that we don't handle at this moment: I mean : the value of the header is not supported, as it seems it does not comply with RFC rules. Best regards, Thierry Boileau Hello Mutaz, it looks like the response contains a www-authenticate

Re: Expected application/x-java-serialized-object+gwt on redirect

2012-04-06 Thread Thierry Boileau
of the gwt extension is not part of the classpath (I think this is gwt-servlet.jar), you can put it also in the WEB-INF/lib directory. java.lang.NoClassDefFoundError: com/google/gwt/user/server/rpc/SerializationPolicyProvider Best regards, Thierry Boileau Hello Jerome, I've just tried

Re: Re: ConverterService behavior differs on GET and PUT

2012-04-06 Thread Thierry Boileau
, Thierry Boileau Jerome, I attempted to make use of this version without my customization to the JaxbConverter at it was unsuccessful. It returns to the previous error behavior attempting to parse the JSON submitted on Request as XML. Hi Michael, Is your conversion problem occurring

Re: Internal HTTP request

2012-04-06 Thread Thierry Boileau
Hello Hendrik, if you simply want to Get a representation of the state of a ressource, and, let's say, write it to the console: new ClientResource(http://192.168.0.1/foo;).get().write(System.out); Best regards, Thierry Boileau Hi, I'm searching for an easy way to interact with a local HTTP

Re: org.restlet.jar doesn't have http package in jee-2.1rc3 edition

2012-04-06 Thread Thierry Boileau
Hello Mutaz, I guess that your classpath is still referencing the core module of the jee-2.0.11 edition. I think this happen because of the org.restlet.ext.servlet.jar taken from jee-2.0.11 edition. Best regards, Thierry Boileau Hi I'm getting java.lang.ClassNotFoundException

Re: Can't retrieve multiple querystring paramaters

2012-04-06 Thread Thierry Boileau
Hello Mutaz, this is a feature of curl. You need to quote the whole URL : curl -H Content-Type: application/json -X POST -d '{name:Mutaz}' http://localhost:8080/testMutaz/test?param1=abparam2=cd; Best regards, Thierry Boileau Hi I'm making this request to a Restlet resource: curl -v -H

Re: XStream and time formats

2012-04-06 Thread Thierry Boileau
().getRegisteredConverters().add(ConverterHelper))... I've added a reference of this thread to the issue #291 ( https://github.com/restlet/restlet-framework-java/issues/291). Best regards, Thierry Boileau I still don't know what the difference between my test and server environments was, but for whatever

Re: Bad Request exception bug

2012-04-04 Thread Thierry Boileau
the process. Best regards, Thierry Boileau I have the following code String openGraphUri = https://graph.facebook.com/;; String accessToken = gerkjh43kj5h43kjh34k; ClientResource clientResource = new ClientResource(openGraphUri + me/feed

RE: Problem with CookieAuthenticator

2012-03-30 Thread Thierry Boileau
code. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2942568

RE: templates in ClientResource?

2012-03-28 Thread Thierry Boileau
Hello Andrei, thanks for reporting this issue. The fix is available under the 2.1 branch and 2.2 master. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2941626

Re: Problem with GWT and JSON

2012-03-21 Thread Thierry Boileau
Hello Vincent, could you tell us what release of Restlet are you using? Best regards, Thierry Boileau Hi, I have a problem about using REST with JSON and GWT. I created a small web service with Restlet simulating a lottery and I have a resource /tirages that sends me all the drawings made

Re: USing Freemarker with ServletAdapter

2012-02-29 Thread Thierry Boileau
Hello Alex, did you try to update the list of client connectors registered by the Component? You can make a call such as Component#getClients().add(Protocol.CLAP); Best regards, Thierry Boileau Hi, I am integrating Guice and Restlet in an approach that involves using ServletAdapter instead

Re: 2.1M7 - Internal HTTP Connector - Overload Error

2012-02-29 Thread Thierry Boileau
/org.eclipse.jetty/*.jar or lib/org.simpleframework/*.jar. Best regards, Thierry Boileau Hi Alessandro, We are aware of this issue and plan to finally fix it for 2.1 RC4, stay tuned! Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -Message d'origine- De

Re: Jetty + Webapp

2012-02-29 Thread Thierry Boileau
= lib/org.simpleframework/*.jar In the case of the Jetty extension = lib/org.eclipse.jetty/*.jar and lib/javax.servlet/*.jar I hope this will help you. Best regards, Thierry Boileau ps : here is a full sample application http://wiki.restlet.org/docs_2.1/13-restlet/303-restlet.html Hi all

Re: Re: Netty, JSON and Chunked Encodings

2012-02-29 Thread Thierry Boileau
the right thing and pick the appropriate Netty service? Yes, it must be automagic :) : component.getServers().add(Protocol.HTTPS, port); best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2927988

Re: @Post generic parameter conversion bug/missing feature

2012-02-29 Thread Thierry Boileau
Hello all, thanks for claiming this : I've entered a new issue http://restlet.tigris.org/issues/show_bug.cgi?id=1378. Best regards, Thierry Boileau Did anybody log an issue for this? I didn't see one, but I don't want to log a dup. -- View this message in context: http://restlet

Re: how to set ETag response header from ServerResource annotated method?

2012-02-29 Thread Thierry Boileau
Hello Andy, do you mean that the response will get the entity a little bit later in your code? Are you trying to set the Tag in the doInit method? Best regards, Thierry Boileau I'd like to set an ETag response header while processing a request within my ServerResource subclass. I tried

Re: how to set ETag response header from ServerResource annotated method?

2012-02-29 Thread Thierry Boileau
Hi Tim, perfect. As usual. :) Best regards, Thierry Boileau I think Andy is talking about a ServerResource subclass with an annotated method returning a value that will later be converted into a Representation. In that case there is no existing Representation on which to call setTag. The way

Re: USing Freemarker with ServletAdapter

2012-02-29 Thread Thierry Boileau
method. Please feel free to ask for more details. Best regards, Thierry Boileau Hi Thierry, I understand how to set the protocol on Component. My problem is more fundamental than that I think. When working with ServletAdapter, I don't have a reference to Component anywhere at hand that I can

Re: Gwt 2.4 + restlet2.1RC2 return null

2012-02-29 Thread Thierry Boileau
more details tomorrow. Bets regards, Thierry Boileau Hello again, I've attached a compressed file with two example projects based on the example application from restlet: a) A netbeans project: RestTestServer in which a server and common classes are defined. This project uses the restletJSE

RE: Re: Using MetadataService to specify the default media type

2012-02-29 Thread Thierry Boileau
Hello all, by the way, we've just fixed a bug in the 2.1 branch and 2.2 trunk regarding the choice of the right annotated method, when handling request's entities (such as @Put, not @Get). Best regards, Thierry Boileau -- http

Re: Netty, JSON and Chunked Encodings

2012-02-22 Thread Thierry Boileau
suggest you to remove the workaround (which is useless) and just replace the netty connector by the jetty one : you are only required to update your classpath. I make some tests also and keep you informed. Best regards, Thierry Boileau My attempted patch at this, which appears to work at first

Re: Netty, JSON and Chunked Encodings

2012-02-22 Thread Thierry Boileau
Hello Grant, I've entered an issue for this point : http://restlet.tigris.org/issues/show_bug.cgi?id=1376 Best regards, Thierry Boileau Hello Grant, the usage of the chunk encoding is perfectly normal and must be supported by HTTP servers and clients (except GAE...). I guess this reveals

Re: Restlet + GAE + JAX-RS

2012-02-22 Thread Thierry Boileau
Hello Guillaume, ouups, I'm sorry for the wrong org.reslet.application instead of org.restlet.application... Best regards, Thierry Boileau Finally its ok I misspell the parameter-name (the evil copy/paste) but thank you for focusing me on these line. Thank you very much -- View

Re: V2. RC.3 : java.lang.NoSuchMethodError when POSTing xml

2012-02-22 Thread Thierry Boileau
-servlet.jar archive... Best regards, Thierry Boileau I've the same issue my war lib directory look like this appengine-api-1.0-sdk-1.6.2.jar appengine-api-labs-1.6.2.jar appengine-jsr107cache-1.6.2.jar c2dm-server.jar c2dm-server-src.jar datanucleus-appengine-1.0.10.final.jar datanucleus-core

Re: Using MetadataService to specify the default media type

2012-02-22 Thread Thierry Boileau
(MediaType.ALL); In this case, the order is significant, once again. Best regards, Thierry Boileau The proper/standard way in HTTP to do this is to correctly set the preferences of your clients (via the “Accept” header typically)… Otherwise, the order of the annotated methods declaration

Re: Restlet server 2.0.11 Threads increase

2012-02-15 Thread Thierry Boileau
Hello Liem, you can set it as follow : server.setContext(new Context()); Generally, such connector is used inside a Component, which automatically adjust the connector's context. Best regards, Thierry Boileau My server stops serving after some connections and I would like to increase

Re: Restlet v2.0.4 not working with jetty v7.6.0

2012-02-15 Thread Thierry Boileau
been tested against and is shipped with Jetty 7.1.6. From time to time, we check new versions of libraries, and we will surely have a look soon on Jetty 7.6, especially for the 2.1 branch. Best regards, Thierry Boileau Wonder if this is a problem with my project configuration or a problem

Re: Restlet + GAE + JAX-RS

2012-02-15 Thread Thierry Boileau
to the JaxRsEntryPoint class. Best regards, Thierry Boileau I try the code provide in the wikihttp://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/57-restlet.html?showComments=true#daisycomment151but it don't work for me, Google App engine say me Error: Not Found !. I tried with version (GAE Edition

Re: UriBuilder encoding

2012-02-11 Thread Thierry Boileau
: javax.ws.rs.ext.RuntimeDelegate.setInstance(your-runtimeDelegate-instance); I've entered an issue for that : http://restlet.tigris.org/issues/show_bug.cgi?id=1373 Best regards, Thierry Boileau From what I understood this method is supposed to add a new segment and not replace the {somevar}. -- View this message in context

Re: gwt compiler can't see org.restlet.ext.html.FormDataSet

2012-02-11 Thread Thierry Boileau
platform. Am I right to think you would like to send multipart entities from your gwt client code? Best regards, Thierry Boileau Hello, I used FormDataSet class to schedule post operation but the gwt compiler is complaining: Compiling module com.tk.gwt.ubscart.Ubscart Validating newly

Re: ObjectRepresentation with int negative returns null

2012-02-08 Thread Thierry Boileau
, your client test code is also able to retrieve a json representation of the Contact, with correct values. Best regards, Thierry Boileau Hello, I've attached a file with a very simple example based in the restlet example from the restlet web. In this example a very simple server is run

Re: ObjectRepresentation with int negative returns null

2012-02-08 Thread Thierry Boileau
, THierry Boileau Hi Gabriel, I've also tested using NetBeans 7.1 and JDK 1.6. I've just opened your test project and added jars from the jseedition, release2.0.11. It works nicely for me. I don't know what to think about it... Best regards, Thierry Boileau Hello Gabriel, that's really

Re: ObjectRepresentation with int negative returns null

2012-02-08 Thread Thierry Boileau
or org.restlet.ext.simple.jar) and its dependencies (org.eclipse.jetty.jar or org.simpleframework.jar). I've entered an issue for that ( http://restlet.tigris.org/issues/show_bug.cgi?id=1371). Best regards, Thierry Boileau Hi Gabriel, I've found a problem with the default converter. If you add the jackson extension

Re: Switch Guards

2012-02-08 Thread Thierry Boileau
Hello all, another way is to use a Filter and a Guard. The filter aims at converting the ChallengeResponse of the request from several kinds of ChallengeScheme into a common one; the guard checks this common scheme. Best regards, Thierry Boileau Hi Sebastian. I have done something similar

Re: Re: ObjectRepresentation with int negative returns null

2012-02-08 Thread Thierry Boileau
, right?). yes, I agree. I check with Jérôme this idea (I've actually developed it). We can include it into the 2.2 trunk, and perhaps in the 2.1 branch. Best regards, Thierry Boileau --tim On Wed, Feb 8, 2012 at 8:19 AM, Gabriel Pulido gabriel.pulidodetor...@gmail.com wrote: Hello Thierry

Re: Redirecting from http to https

2012-02-08 Thread Thierry Boileau
it anser your question? Best regards, Thierry Boileau I have a restlet-based app running on heroku that I want to use SSL. Heroku has a piggyback option which processes SSL connections for you. As far as I can tell, it works like this: Heroku processes the SSL connection, and redirects the call

Re: [mailing] Don't receive any mail from the mailing list

2012-02-08 Thread Thierry Boileau
Hello Thomas, I've checked also your subscription, to the discussion list, I've made a few update to your subscription. I hope everything is fine now. Best regards, Thierry Boileau Hi guys, I don't receive any mail from this mailing list. As far as I can see my configuration on http

Re: Unable to get the template serviceInfo.ftl, protocol used is not declared in the client connectors. (FILE) - I've tried everything

2012-01-11 Thread Thierry Boileau
: component.getClients().add(Protocol.FILE); I think we must complete the error message in order to enclear the real cause of the problem. Best regards, Thierry Boileau i've seriously been at this for hour I'm really stumped something is missing. I can't understand why it doesn't work. I'm trying to pass

Re: ChallengeResponse is NULL on the server side using GWT RESTLET client 2.1RC1 (Regression??)

2011-12-16 Thread Thierry Boileau
Hello Koen, Thanks a lot for reporting this issue and sorry for the delay. The fix (for HTTP_BASIC authentication) is available in the 2.0 branch (next release : 2.0.11), and the current trunk (snapshot in a few hours, and 2.1rc2 in a few days). Best regards, Thierry Boileau Hi Jerome

Re: Re: How to tell Restlet not to use the chunked trunsfer encoding.

2011-12-09 Thread Thierry Boileau
to call ClientResource.setRe​questEntityBuffering​(true) ? yes, all happens on client side. As GAE does not support chunked entities, the client has to send an instance of Representation with a known size, by doing so the client connector won't use chunked encoding. Best regards, Thierry Boileau

Re: Re: Re: How to tell Restlet not to use the chunked trunsfer encoding.

2011-12-09 Thread Thierry Boileau
and recover the exact entity by concatenating all chunks sent by the client. Do you mean to tell your server (I guess it's based on Restlet) to refuse chunked requests? Best regards, Thierry Boileau But my client side does not use Restlet. What should the HTTP request contain to tell the server not to use

Re: Serious bug in ClientResource

2011-12-08 Thread Thierry Boileau
Hello Arjohn, the snapshots are refreshed three times in a day, and the maven repository once a day. I've just checked, you can test it. Best regards, Thierry Boileau The fix looks fine to me. How often are the snapshot builds updated on maven.restlet.org so that I can test it? -- Arjohn

Re: Multiple versions of API in production

2011-12-07 Thread Thierry Boileau
: MODE_CLIENT_PERMANENT, MODE_CLIENT_FOUND, MODE_CLIENT_SEE_OTHER, MODE_CLIENT_TEMPORARY. Best regards, Thierry Boileau Trying to implement some sort of versioning for an enterprise API. It could interface with external APIs eventually so I want to do it right. Resources will likely be grouped

Re: Jetty SSL Parameter issues

2011-12-07 Thread Thierry Boileau
Hello Michael, I've just tested using the 2.1 snapshot and it works well for me. I wonder if we will upgrade jetty version for 2.0. Best regards, Thierry Boileau Found that this issue has actually been reported before, though it was not acknowledged as being all of the parameters. http

Re: Is it possible to override the Accept HTTP headers using a URL decorator?

2011-12-07 Thread Thierry Boileau
the GET request treated as DELETE on the server side (useful for client supporting only GET and POST requests). It also offers this service, by default. But please, please, please, don't send a GET request in order to update the resource's state. Use the POST request instead. Best regards, Thierry

Re: How to tell Restlet not to use the chunked trunsfer encoding.

2011-12-07 Thread Thierry Boileau
with a true value. Best regards, Thierry Boileau Anyone? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2890337 -- http://restlet.tigris.org/ds/viewMessage.do

Re: HTTP Authentication

2011-12-07 Thread Thierry Boileau
response) { response.setEntity(hello, world, MediaType.TEXT_PLAIN); } }); server.setNext(guard); server.start(); } I hope this will help you. Best regards, Thierry Boileau Hello, This is a rather simple question about authentication from the server-side point

Re: Serious bug in ClientResource

2011-12-07 Thread Thierry Boileau
Thanks a lot Arjohn, I've opened an issue for this bug : http://restlet.tigris.org/issues/show_bug.cgi?id=1357 Best regards, Thierry Boileau Hi all, I think I've run into a serious bug in ClientResource. I've found this in method handle(Method method, Object entity, ClassT resultClass

Re: Serious bug in ClientResource

2011-12-07 Thread Thierry Boileau
Hello Arjohn, thanks a lot for the issue and for reporting this bug. The fix is now available in the trunk and the 2.0 branch. Best regards, Thierry Boileau FYI: I've logged this issue earlier as: http://restlet.tigris.org/issues/show_bug.cgi?id=1356 On 07/12/2011 17:57, Thierry Boileau

Re: How can I deploy a ReSTlet based web service to apache tomcat?

2011-10-12 Thread Thierry Boileau
taken from the first application source code : http://wiki.restlet.org/docs_2.1/303-restlet.html Best regard, Thierry Boileau I was wondering how can I deploy ReSTlet to Apache Tomcat or any other server for that matter I am using maven as my build system. Any suggestions will be helpful, I

Re: Re: [Restlet POC] Response Entity NULL

2011-10-12 Thread Thierry Boileau
Hello Christie, could you provide a reproductible sample test case (eclipse project)? Best regards, Thierry Boileau I am also having the same issue. My setup has Restlet 2.1 RC1 J2SE edition on the backend and using Restlet 2.1 RC1 GWT on the frontend. Parameter objects gets passed

Re: Issue in 2.1.m7 with SSL Client Connections

2011-10-12 Thread Thierry Boileau
Hello Alex, I've entered an issue for tracking this bug : http://restlet.tigris.org/issues/show_bug.cgi?id=1338. We're quite busy but will have a look at this preoccupating error. Best regards, Thierry Boileau On Tue, Sep 27, 2011 at 5:36 AM, Alex Milowski ale...@milowski.org wrote: Yet even

Re: Post to GAE

2011-10-05 Thread Thierry Boileau
) that systematically do this step for you, enabling you to keep your method signature intact (public void accept(Representation entity)). I work on this today, will complete the issue, and keep you informed. Best regards, Thierry Boileau Hi Jerome, Thanks a lot for your kind answer. Even if it's

Re: PROPFIND response not working anymore with restlet 2.0.9, working, but with pbs with 2.0.6, was working OK with 2.0.1

2011-10-05 Thread Thierry Boileau
Hello Fabian, no pbs, you're welcome. Best regards, Thierry Boileau Ok, we've found the solution to the problem. It was indeed a namespace issue, the following code excerpt works OK: public Representation propfind(Representation data) throws ResourceException { ListDavProperty

Re: Post to GAE

2011-10-05 Thread Thierry Boileau
Hello Michel, the fix is available in the current trunk, and will be part of the next snapshot (in a few hours) and release (2.1rc1). No more converter is required. Best regards, Thierry Boileau Hello Michel, as a temporary workaround, you can add a converter that reconstructs the form

Re: PROPFIND response not working anymore with restlet 2.0.9, working, but with pbs with 2.0.6, was working OK with 2.0.1

2011-09-28 Thread Thierry Boileau
Hello Fabian, I think there is a link with the DAV namespace. Could you try by making the DomRepresentation namespace unaware? Best regards, Thierry Boileau Hello, I've updated restlet libs for my app to 2.0.9, and now PROPFIND (WebDAV) requests are not working anymore. Basically

Re: in restlet 2.0.9

2011-09-17 Thread Thierry Boileau
Hello, this happens when the clientResource tries to contact a remote resource that does not exist. Using the clientResource, every response having a status code such as 4xx (client error), 5xx (server error) throws a ResourceException. Best regards, Thierry Boileau i meet this error: 2011-9

Re: Bug in DefaultConverter in 2.0.8?

2011-08-12 Thread Thierry Boileau
Hello Glenn, thanks a lot for reporting this bug and for your analysis. The fix is available in the svn repository for both 2.0 branch and trunk (future 2.1). Best regards, Thierry Boileau 2. shouldn't the test on line 237 of toObject be the test used on line 179 of the score method

Re: Spring inject a Form constructed using the requestEntity

2011-08-11 Thread Thierry Boileau
(json) public Representation handleJson(Representation entity) { // parse the json entity and do stuff } This may explain Tim's suggestion. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId

Re: GWT Client Restlet Post/Get example

2011-08-11 Thread Thierry Boileau
org.restlet.example.serialization.gae-gwt? Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2815674

RE: Client authentication with annotated methods

2011-08-11 Thread Thierry Boileau
Hello setenv, that's the right way. I've updated the javadocs in order to precise the crucial role of the wrap method. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2815681

Re: v2.0.8 - issue with jax-rs @FormParam and String encoding

2011-08-11 Thread Thierry Boileau
Hello Nick, this may be linked with the media type of the entity sent to the server. Could you check it (via the request header content-type, or the media type of the Request#getEntity instance)? Best regards, Thierry Boileau Is there really nobody who knows about this? This is a pretty huge

Re: Using DIGEST authentication with multiple routes

2011-08-11 Thread Thierry Boileau
subclass of ClientResource, etc. Best regards, Thierry Boileau I've read the following: http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/46-restlet/112-restlet.html But I am unable to work how I should protect the following application: Application app = new Application

Re: null pointer exception with Fine Logging

2011-07-20 Thread Thierry Boileau
Hello Martin, thanks for reporting this bug, I look at it immediately. Best regards, Thierry Boileau I have noticed a problem with setting logging to Fine. The Authenticator.java throws a null pointer exception in the authenticated/unauthenticated methods (line 234). I am guessing

Re: null pointer exception with Fine Logging

2011-07-20 Thread Thierry Boileau
Hello Martin, the fix is available in the svn repository. Best regards, Thierry Boileau Hello Martin, thanks for reporting this bug, I look at it immediately. Best regards, Thierry Boileau I have noticed a problem with setting logging to Fine. The Authenticator.java throws a null

Re: Method Not Allowed (405) for put and post...

2011-07-20 Thread Thierry Boileau
//NIL/holdhttp://localhost:8111/pcws/1/card//NIL/hold can be caught by another uri template defined by your application? Best regards, Thierry Boileau Hello Brent, have you tried to annotate your handler with: @Put(txt) instead? On Mon, Jul 18, 2011 at 2:26 PM

<    1   2   3   4   5   6   7   8   9   10   >