You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2009/03/26 22:38:34 UTC
[1.x] etag question for Atom binding
I'm getting a failure in ContentNegotiationTest.testXMLFeedGet().
Abdera is bailing out as it can't find an etag of a suitable format in
the response. What's coming back is
ETag: customers23999306
While keeps it happy is.
ETag: "customers23999306"
However there's something I'm not understanding here as I assume this
must have worked in the past.
Regards
Simon
Re: [1.x] etag question for Atom binding
Posted by Simon Laws <si...@googlemail.com>.
On Thu, Mar 26, 2009 at 9:38 PM, Simon Laws <si...@googlemail.com> wrote:
> I'm getting a failure in ContentNegotiationTest.testXMLFeedGet().
> Abdera is bailing out as it can't find an etag of a suitable format in
> the response. What's coming back is
>
> ETag: customers23999306
>
> While keeps it happy is.
>
> ETag: "customers23999306"
>
> However there's something I'm not understanding here as I assume this
> must have worked in the past.
>
> Regards
>
> Simon
>
Looking at the HTTP specs it seems that the ETag is expected to be a
quoted string.
from [1]
ETag = "ETag" ":" entity-tag
from [2]
entity-tag = [ weak ] opaque-tag
weak = "W/"
opaque-tag = quoted-string
from [3]
quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
qdtext = <any TEXT except <">>
So I'll fix the code to make this so.
Regards
Simon
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html
[3] http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html