RE: Re: Serious bug in ClientResource

2011-12-13 Thread Koen Maes
I have a problem that an outbound connection sends the wrong representation, it 
sends the representation it received from the incoming connection (GWT 
serialized object) while it should send JSON.

see 
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2892105

Might this bug be causing this problem ?

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


Re: Serious bug in ClientResource

2011-12-13 Thread Arjohn Kampman
This looks like a related but different bug to me. ClientResource.wrap()
doesn't seem to call AnnotationInfo.getRequestVariants(...) at all.

-- 
Arjohn Kampman - www.aduna-software.com

On 13/12/2011 13:42, Koen Maes wrote:
 I have a problem that an outbound connection sends the wrong representation, 
 it sends the representation it received from the incoming connection (GWT 
 serialized object) while it should send JSON.

 see 
 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2892105

 Might this bug be causing this problem ?

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

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


Re: Serious bug in ClientResource

2011-12-09 Thread Arjohn Kampman
Fix verified, it works as expected now. Thanks.

On 08/12/2011 10:12, Thierry Boileau wrote:
 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

-- 
Arjohn Kampman - www.aduna-software.com

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


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 Kampman - www.aduna-software.com

 On 07/12/2011 19:39, Thierry Boileau wrote:
  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

 --

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


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

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) in
 restlet 2.0.10, but 2.1.x seems to be affected too.

 What I think is wrong with this method is that it uses the variants for
 the response to convert the request entity to a representation. Imagine
 doing the following call:

clientResource.post(1234, Integer.class)

 ClientResource.handle(...) will try to convert the string 1234 to a
 representation using a converter for integers. This will succeed with
 the DefaultConverter as it happens to be able to encode both strings and
 integers, but in other situations it will fail misserably.

 I hope you can fix this soon. Are there any work-arounds that I can use
 until then?

 --
 Arjohn Kampman - www.aduna-software.com

 --

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


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

Re: Serious bug in ClientResource

2011-12-07 Thread Arjohn Kampman
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 wrote:
 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


-- 
Arjohn Kampman - www.aduna-software.com

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


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 wrote:
  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


 --
 Arjohn Kampman - www.aduna-software.com

 --

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


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

Re: Serious bug in ClientResource

2011-12-07 Thread Arjohn Kampman
The fix looks fine to me. How often are the snapshot builds updated on
maven.restlet.org so that I can test it?

-- 
Arjohn Kampman - www.aduna-software.com

On 07/12/2011 19:39, Thierry Boileau wrote:
 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

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