I've been porting my site to WK CVS. I've found one issue with the combination of mod_rewrite rules and the new URLParser class. I am doing the standard /wk/ rewrite for the top level:
RewriteRule ^(.*) /wk/$1 [L,PT]


Now, say that I have a servlet at http://example.com/directory/index (in reality in /wk/directory/index). If I request: http://example.com/directory/ everything works fine. If instead though, I do an http://example.com/directory (no trailing slash), the URLParser class (line 450 or so), does this:
raise HTTPMovedPermanently(webkitLocation=trans.request().urlPath() + "/")


That though sends to the client a 301 with a new location of http://example.com/wk/directory/ which in turn Apache changes into http://example.com/wk/wk/directory/ which finally raises a 404.

Changing the above URLParser line to:
raise HTTPMovedPermanently(location=trans.request().urlPath() + "/")

fixes the problem, but I am not sure if that will break other configs, so I am not submitting a patch just yet. What gives?

Thanks,

Costas

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to