chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #779: hyde: support trailing slashes on directories


From: Chicken Trac
Subject: [Chicken-janitors] #779: hyde: support trailing slashes on directories
Date: Thu, 19 Jan 2012 02:31:25 -0000

#779: hyde: support trailing slashes on directories
------------------------+---------------------------------------------------
 Reporter:  retroj      |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  major       |   Milestone:  4.8.0
Component:  extensions  |     Version:  4.7.x
 Keywords:              |  
------------------------+---------------------------------------------------
 hyde serve (hyde 0.15) fails to serve index content when the request url
 has a trailing slash on the end of the directory.  For example, make a
 hyde project with a file like the following in the src/ dir:

   about/index.wiki

 Run hyde serve and try the following urls:

   http://localhost:8080/about/index.html → OK
   http://localhost:8080/about            → OK
   http://localhost:8080/about/           → FAIL

 The problem is in the procedure 'page-by-path', which is called by 'serve'
 to find the page object for the given uri path.  In the case where the
 directory has a trailing slash, the path object (a list that was returned
 by 'uri-path') has as its last term an empty string, and page-by-path
 fails to deal with this.

 A patch showing one way to fix this is attached.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/779>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]