Hello,
Le 11/02/2010 16:33, Thierry Boileau a écrit :
> I'm sorry for the delay, I thought my email was sent... at least, I can
> complete my last answer.
No problem, don't worry, and I can use more infos :)
>
> >Also, since the upgrade, I show in the logs that the port is -1
> The log trace has been fixed a few days ago (the Response#ServerInfo
> member were not properly set).
Great, thanks.
>
> >When I return an empty representation with an Identifier set, I can
> not be found in the client side (object is null).
> Yes, as the emptyRepresentation is not "available" ("size" equals to 0
> and "available" attribute is false), then the entity headers are not copied.
> This choice has been made and discussed in the past, however the HTTP
> spec is on the way to be rewritten and reexplained at the IETF group =>
> http://tools.ietf.org/wg/httpbis/.
> This notion of empty representation seems to be clarified, I've updated
> an existing issue about this topic:
> http://restlet.tigris.org/issues/show_bug.cgi?id=995
Thanks for the info, but I have some questions. You said it has been
discussed in the past, but this was working with 2.0 M6. Have you made
some changes recently in this field ?
Do you think this should work as I was expecting, or do I misuse the
concept. Because the RFC
[http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5] say :
The server has fulfilled the request but does not need to return an
entity-body, and might want to return updated metainformation
So one way can be to not set the reference, because it is not mandatory,
but we prefer to set it (it helps the client to be lazy to have such info).
> For now, we need some time to reconsider the current position.
> Do you think it's acceptable to send a representation with a single
> character, as a workaround?
I can send back a string representation with no character (and we will
do that if it is working) but I prefer to not change my code ;)
Regards,
Laurent.
--
Laurent Rustuel,
Alten contractor for Alcatel-Lucent, Brest
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2446769