Hi Alex,

I've made some adjustments yesterday evening, could you try with a fresh copy?

best regards,
Thierry Boileau


On Tue, May 13, 2008 at 10:49 AM, Alex Milowski <[EMAIL PROTECTED]> wrote:
Oddly enough, with all my uses of Restlet, I haven't really used the Directory
 class yet and now that I have, I'm having a bunch of troubles that I just don't
 quite understand.

 I have a directory on disk that I'm just trying to "serve up" with the 
Directory
 instance.  I have an application that returns a single
 instance of "Directory" as its root from createRoot() like this:

   return new Directory(getContext(),LocalReference.createFileReference(dir));

 where the 'dir' variable is an instance of File initialized to the
 content directory.

 When I try to access any file (or directory), I get 300 returns with a
 URI list.  I've
 tried turning content negotiation off but that doesn't seem to help.


Looks like this has something to do with the TunnelService and its interaction
with extensions.  If you either turn off the tunnel service or tell it not
to mess with extensions (i.e. setExtensionsTunnel(false)), then Directory
works as expected.

This leads me to believe there is something not quite so right with what
the TunnelService is currently doing with extensions.

That is, if I turn on or off the TunnelService and "GET" request on a resource
that maps to a file should still work.

Again, I'm working with the trunk... :)

--Alex Milowski


Reply via email to