Fossil SCM

Wiki page names starting with '.' don't work

Open

87f7cebc27d1504… · opened 15 years, 5 months ago

Type
Code_Defect
Priority
Severity
Minor
Resolution
Open
Subsystem
Created
Nov. 3, 2010 11:21 a.m. UTC

I can link to a page with a starting dot like [.this], but it is not understood as a wiki page apart.


stephan added on 2011-09-15 22:01:36 UTC: Why would you expect a page name starting with a non-letter to work? i'm not aware of ANY wiki which allows wiki works to start with non-alpha characters (and most require CamelCaseWords). Fossil doesn't have a 100% generic document management system - it has a wiki, and wiki conventions call for certain naming patterns. Granted, fossil's naming conventions are "more flexible" than most wikis, but i would never expect a page name starting with a dot to work.


dmitry added on 2011-09-16 10:00:41 UTC: I agree with the strangeness of the name, but the problem is that we have inconsistent behaviour. Currently Fossil:

  • Allows creating a new page with dot in the beginning here: [http://www.fossil-scm.org/index.html/wikinew] Note that there are rules for names listed on this page; and ".Pagename" is okay by these rules.
  • But when linking to such pages via [.Pagename] syntax, links don't work correctly (should point to http://www.fossil-scm.org/index.html/wiki?name=.Pagename, but point to http://www.fossil-scm.org/index.html/.Pagename).

We should either disallow creating wiki pages with "." in the beginning and update the rules, or fix the link formatting.


stephan added on 2011-09-16 10:31:49 UTC: i would vote for requiring the name to start with a letter, but that requires more code for the validation and error handling :/. i think allowing any character as the start character will lead to ambiguities downstream at some point. e.g. if the first letter is '#', how do we distinguish that from an anchor link?




Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button