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