Closed GoogleCodeExporter closed 8 years ago
Not sure if you looked at this or not, but it's caused because the wubwikit
examples don't have a site.config file and don't set up any default URLs.
if this thing is called with an empty list it generates a bad switch body.
Original comment by tircnf
on 29 Apr 2011 at 6:36
Thanks for finding this. The objective is to take the set of URLs which have
been used to match and dispatch, and if they have failed, to try to redirect
them with a trailing '/'
The idea is that if you specify an http://example.com/url/ and someone tries to
GET http://example.com/url which fails, it will be redirected with the
corrected URL.
It seems I need to account for the case that no URLs have been specified ...
but how does wubwikit function without any URLs specified? They added
dynamically?
I'll fix the null case.
Original comment by firstros...@gmail.com
on 30 Apr 2011 at 1:28
I must confess I'm not sure how (or if) the wubwikit examples used to work.
I found them from the wub wiki page,
http://wiki.tcl.tk/15781
and they are here.
http://code.google.com/p/wubwikit/source/browse/#svn/trunk/wubexamples
If you download example 1 and try to run it you get that bad switch body error.
I assume that back when this example was created that wub would default to a
file domain for ./docroot but I haven't searched through old svn versions.
Is there a better place to find some wub examples?
Original comment by tircnf
on 30 Apr 2011 at 1:45
Tried to simply catch the no-processed case, generating a NotFound. Let me
know if that doesn't work. I'm still puzzled as to how wubwikit does what it
does.
Original comment by firstros...@gmail.com
on 30 Apr 2011 at 2:09
Original comment by mcc...@gmail.com
on 30 Apr 2011 at 2:25
Original issue reported on code.google.com by
tircnf
on 8 Nov 2010 at 11:52