Re: Content negotiation problem when using a specific server connector (Jetty, Simple or Netty)

2010-11-18 Thread David Fogel
Hi Bruno, Thierry-

FYI, I just posted about an issue related to this one on the code list:

http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458dsMessageId=2682868

-Dave Fogel


On Fri, Aug 13, 2010 at 3:04 PM, Thierry Boileau
thierry.boil...@noelios.com wrote:
 Hello Bruno,

 thanks for reporting this issue. I've fixed it in the svn repository.

 Best regards,
 Thierry Boileau

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


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


RE: Content negotiation problem when using a specific server connector (Jetty, Simple or Netty)

2010-08-13 Thread Thierry Boileau
Hello Bruno,

thanks for reporting this issue. I've fixed it in the svn repository.

Best regards,
Thierry Boileau

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


Content negotiation problem when using a specific server connector (Jetty, Simple or Netty)

2010-08-09 Thread Bruno Harbulot
Hi,

The problem I described in 
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2639896
 
was fixed in version 2.0.0 (I was using 2.0-RC4 for this test). Great!

However, there's a new problem.

(I'm using the same code: http://gist.github.com/496447)

This works:
dependencies
dependency
groupIdorg.restlet.jse/groupId
artifactIdorg.restlet/artifactId
version2.0.0/version
/dependency
dependency
groupIdorg.restlet.jse/groupId
artifactIdorg.restlet.ext.httpclient/artifactId
version2.0.0/version
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.4/version
/dependency
/dependencies



As soon as I add Jetty, Simple or Netty, the tests fail.
dependency
groupIdorg.restlet.jse/groupId
artifactIdorg.restlet.ext.jetty/artifactId
version2.0.0/version
/dependency



The main difference I've been able to notice is that, on a GET request, 
with the default connector, the request's entity is an 
EmptyRepresentation, whereas with either Jetty, Simple or Netty, the 
request's entity is in InputRepresentation with isAvailable() being true.
When AnnotationInfo.isCompatibleRequestEntity(...) is called as part of 
the automatic ServerResource.getVariants() call, the fact that there is 
an entity available makes it return 'false' and thus the variants are 
never added.


Best wishes,

Bruno.

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