FileAttribute and PassDir question

[This one is very old, sorry]

Alexandre Rafalovitch writes:
 > Hi,
 > 
 > I was looking at PassDirectory and suddenly had a question in my mind. Is
 > pass-target relative or absolute. If it is absolute then what happens if it
 > was in the root space and if it relative than relative to what. So I tried
 > an experiment.
 > 
 > I created a PassDirectory resource and gave it absolute directory address.
 > That worked and showed me the directory I pointed to.

Yes, this is the intended usage.

 > Next I called up editor on PassDir again and changed pass-target to non
 > absolute dir (without front /).
 > When I pressed Ok, I noticed that pass-target changed to give me an
 > absolute address.Unfortunately, it showed me that relative address is
 > counted not from WWW directory (which is default servable space) but from
 > directory above it (Jigsaw/Jigsaw in distribution). That seems wrong to me.
 > Is it? Also, where is the piece of code that changed relative filename into
 > absolute filename? I did not seem to find it in FileAttribute.java.

Relative to the current directory of the server I think (!). It should
be relative to the server's root directory when not absolute...(I'll
fix it).

Anselm.

Received on Thursday, 22 August 1996 17:34:58 UTC