[hunchentoot-devel] handle-static-file patch

Cyrus Harmon ch-tbnl at bobobeach.com
Fri Feb 8 16:34:41 UTC 2008


On Feb 8, 2008, at 6:19 AM, Edi Weitz wrote:

> On which Lisp does that solve the problem?
>
> CLISP on Windows:
>
>  CL-USER> (pathname-name (truename "c:\\WINDOWS"))
>  "WINDOWS"
>
> AllegroCL on Linux:
>
>  CL-USER(1): (pathname-name (truename "/tmp"))
>  "tmp"
>
> (Yes, these are both directories.)
>
> I fear we're in unknown territory and need to resort to something like
> CL-FAD for a real solution... :(

Darn. On SBCL on Mac OS (and presumably linux, etc...) I get:

CL-USER> (pathname-name (truename "/tmp"))
NIL

The joy of CL pathnames... Yes, cl-fad seems like a reasonable  
approach to me.

>> Not sure if this is desired behavior or not, but I'd rather see a
>> 500 error here. There's another error where if one sets up a folder-
>> dispatcher-and-handler to catch "/www/foo/" and you request "/www/
>> foo/" you git an internal server error instead of a 500 error, but I
>> haven't worked out the patch for that one yet.
>
> Hmm, sounds vaguely familiar.  Didn't we have something like this
> already?

If we did it doesn't seem to be in 0.15.0.

Thanks,

Cyrus




More information about the Tbnl-devel mailing list