You are here: Foswiki>Tasks Web>Item9284 (15 Mar 2011, GeorgeClark)Edit Attach

Item9284: web defaulting fails if url has a lowercase web

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: major
Applies To: Engine
Component: UrlHandling
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
http://trunk.foswiki.org/bin/view/system

goes to Main, no error reported.

http://foswiki.org/bin/view/system silently redirects to http://foswiki.org/system and then quietly does the wrong thing too

the user should at least know there was something wrong...

this is a bit related to shorterurls, and a bit to something else i fear

-- SvenDowideit - 09 Jul 2010

There is already a hack in place in Foswiki.pm to ucfirst the topic name. I don't like that hack, nor the idea of a similar hack for webs, because the validity of web and topic names is dictated by the configured regexes, not some arbitrary hard-coded heuristics. system may be a perfectly valid web name.

However if you reach the end of the view script with uninterpreted path info left over, I guess you could detect it. Of course you'd have to decide what "uninterpreted" means, as it may be fodder for a REST call, or for a plugin.

I don't think this is a release blocker. It's a bit clumsy, but not a killer. Confirmed at Normal prio.

-- CrawfordCurrie - 10 Jul 2010

Similar to Item929 - The URL is validated for a valid Topic and Web name. An invalid name - illegal characters, web without Capitalization, embedded spaces, etc. is removed and then default URL handling kicks in substituting WebHome and Main as needed. Unfortunately it doesn't go one step further and remove the illegal webname from the url by redirecting to Main or sending an oops.

-- GeorgeClark - 15 Mar 2011
 

ItemTemplate edit

Summary web defaulting fails if url has a lowercase web
ReportedBy SvenDowideit
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component UrlHandling
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease major
ReleasedIn n/a
Topic revision: r3 - 15 Mar 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy