[ 
https://issues.apache.org/jira/browse/JSPWIKI-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harry Metske updated JSPWIKI-777:
---------------------------------

    Attachment: ff.patch

JP, I think your suggestion will not work. If you would create such a 
"FirstCharOfPageCaseInsensitiveVersioningFileProvider" with the overriden 
pageExists() method, it will indeed give you a readlink 
(.../JSPWiki/Wiki.jsp?page=Testpage) instead of an Edit link 
(.../JSPWiki/Edit.jsp?page=Testpage), but still the pagename in the link is 
uppercase, and if you click on it you get to a "This page does not exist. Why 
don’t you go and create it?" situation. We would have to patch more bits to 
make this all work. This is getting a bit messy then.
Also I think it's all symptom fighting (don't know if that is correct English).
Another side effect is that if someone has created a page "testpage" (in the 
way Jim does), and some time later someone else creates a page "Testpage", this 
first one will become unreachable.
And I haven thought about the behaviour on the Windows platform.

I would rather introduce a new property to control the behaviour of uppercasing 
the first char. Defaults of course to the current behaviour.
Setting this property to false would restore the old version 2.2 behaviour.
See attached proposal patch.

regards,
Harry
                
> JSPWiki converting all links to lead uppercase
> ----------------------------------------------
>
>                 Key: JSPWIKI-777
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-777
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Core & storage
>    Affects Versions: 2.8.4, 2.9, 2.9.1
>            Reporter: Jim Willeke
>            Assignee: Harry Metske
>            Priority: Critical
>         Attachments: ff.patch
>
>
> ---------- Forwarded message ----------
> From: Markus Napp <[email protected]>
> Date: Tue, May 28, 2013 at 4:45 AM
> Subject: Re: JSPWiki converting all links to lead uppercase
> To: "[email protected]" <[email protected]>
> Since I'm experiencing the same issue I wanted to chip in.
> By mistake I ended up copying the JSPWiki.jar from our (working) 2.8.2
> into an installation of 2.8.4.
> For whatever reason that solved the behavior. The version would then be
> displayed (as expected) as 2.8.2 but all the broken behavior from that
> version (collapsible lists don't work, change note overwriting all older
> change notes) were fixed and links would point reliably to lowercase pages.
> I get that "Camel Case" issue with 2.8.3 and 2.8.4 from the stable
> packages (fresh installation). We have an installation from the old stable
> 2.8.2 package that works just fine.
> Additional information:
> ---------- Forwarded message ----------
> From: Jim Willeke <[email protected]>
> Date: Sun, May 26, 2013 at 3:17 PM
> Subject: Re: JSPWiki converting all links to lead uppercase
> To: JSPWiki Support <[email protected]>
> We have version 2.8.4 and the condition we run into is:
> We created pages programmatically sometime back on an older version. (Sorry, 
> do not know what version) similar to: 
> http://ldapwiki.willeke.com/wiki/aFPServer
> Now, when we have a link to this page: 
> http://ldapwiki.willeke.com/wiki/2.16.840.1.113719.1.1.6.1.0 and click the 
> link for [aFPServer] we end up on being asked to create the page [AFPServer]
> So the [aFPServer] page is effectively orphaned never to be found again.
> No change in platform. Linux/Tomcat. I am sure we have changed versions or 
> both Linux (SLES 11 to 11.2)  and TomCat (but still 6.x). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to