We've noticed something odd in the response headers of requests routed
to Directory instances which use the "file:///path/to/resource" type
of root URI.

When we send a GET request to a resource served by such a Directory,
we get back a response with status 200, and the correct entity body
containing the references resource.  But we also get back a
"Content-Location" header which contains an incorrect version of the
path:

Request:

GET /restlet/trunk/src/org/restlet/package.html HTTP/1.1
Host: example.com

Response:

HTTP/1.1 200 The request has succeeded
Expires: Thu, 26 Feb 2009 08:06:32 GMT
Content-Language: en-us
Content-Type: text/html
Last-Modified: Sun, 22 Feb 2009 23:26:06 GMT
Content-Length: 216
Content-Location: http://example.com/restlet/trunk/src/org/restletpackage.html
Date: Thu, 26 Feb 2009 07:56:32 GMT
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Accept-Ranges: bytes
Server: 
Noelios-Restlet-Engine/@major-num...@.@minor-num...@.@release-type@@release-number@
Connection: close

--removed body---

Notice that the Content-Location URI is missing a slash "/" between
the segments "restlet" and "package.html".

Is this a bug?

thanks
   -Dave Fogel

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

Reply via email to