possible Application Access Logging bug

2007-02-21 Thread Alex Combs
Run into a bit of an issue: It seems that if I create an Application and attach
it to a Component, the Application no longer makes use of the Component's access
logger.  I'm guessing this dates back to RC1 and the deprecation of
Application's logService, but if this is the case, how do I go about re-enabling
Access Logging for my Application?  It's already nicely defined for my
Component's logService, I just need a way to get Application to use it too.

On a related note: The Tutorial's Section 7 should probably be updated, since
you can't modify an Application's logService property anymore.


Re: Directory problems again

2007-02-21 Thread Thierry Boileau

Hello Sean,

could you please check the snv repository? I think this issue has been 
fixed.

Sorry for this trouble.

Best regards,
Thierry Boileau

It seems the Directory behavior has changed again. Used to be I could do this:

Application application = new Application(component.getContext()) {
@Override public Restlet createRoot() {
  Directory directory = new Directory(getContext(),
   file:home/slandis);
  directory.setListingAllowed(true);
  directory.setDeeplyAccessible(true);
  return directory;
}
};

And if the directory did not have an index file in it, then the browser would
display files and directories with the later being links that could be 
traversed. Somewhere along the line, this has changed. If the index file

is present, it gets loaded. If not present, the browser attempts to download
the directory as a file. 


I think the old behavior was much more intuitive.