Bonsoir Thierry,

no problem for answering late, I know it's holidays time over there
(hope you enjoyed yours, if any).

I tried with the proposed change and PROPFIND is properly handled now, it works.

I've also added a debug log output like this (I had to use reqRep
instead of rep as the param name, because rep is defined and used
somewhere else in the same method):

getLogger().info(String.format("Representation is of media type %s",
reqRep.getMediaType()));

and this is what I got on the log:

Sep 1, 2010 1:58:43 PM com.calenco.resource.workspace.ContentResource propfind
INFO: Representation is of media type application/xml

So I guess I can just ommit the final DomRepresentation ... line.

Maybe the empty parameters signature is confusing the content
negotiation logic for the annotated method handler somehow? (I've seen
something similar on the list for POST and 2.0.0 IIRC)

Hope this helps to fix this bug. Thanks in advance for your efforts.

On Wed, Sep 1, 2010 at 1:02 PM, Thierry Boileau
<[email protected]> wrote:
> Hello Fabian,
>
> I feel very sorry for answering so late...
> Can you try with this signature?
>
> public Representation propfind(Representation rep) throws ResourceException {
> [...]
> final DomRepresentation reqXML = new DomRepresentation(rep);
> [...]
> }
>
>
> Best regards,
> Thierry Boileau
>



-- 
Fabián Mandelbaum
IS Engineer

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

Reply via email to