Could you be a bit more specific on this ? On Linux this test for JSPWiki 2.6.4 fails exactly the same. Now I know that Windows (NTFS) is less or more case-insensitive, and I guess MacOS is also case insensitive (not sure).
As far as I have seen JSPWiki currently is case sensitive, you can have two pages "This is a test" and also "This Is A Test". If you mean that JSPWiki should behave completely case insensitive, which page from the two above should be selected ? I just created three pages on the sandbox ( http://sandbox.jspwiki.org/Wiki.jsp?page=This%20is%20a%20case%20test) with the same name if case would not be honored, if we would change JSPWiki's behavior with regard to file name case sensitivity, we would have a challenge I think. The problem is that I can't easily test JSPWiki on non-*nix type systems, can these three files also be created on MacOS or Windows ? regards, Harry 2008/9/4 Janne Jalkanen <[EMAIL PROTECTED]> > > The test is correct and there is a bug. > > /Janne > > > On 4 Sep 2008, at 13:40, Simon Kitching wrote: > > I've run the jspwiki 2.6.3 unit tests on linux, and test >> WikiEngineTest.testSpacedNames1 >> fails. >> >> The test is simple: >> >> public void testSpacedNames1() >> throws Exception >> { >> m_engine.saveText("This is a test", "puppaa"); >> assertEquals( "normal", "puppaa", m_engine.getText("This is a >> test").trim() ); >> assertEquals( "lowercase", "puppaa", m_engine.getText("this is a >> test").trim() ); >> assertEquals( "randomcase", "puppaa", m_engine.getText("ThiS Is a >> teSt").trim() ); >> } >> >> >> And the failure reason is simple too. The saveText call succeeds, and >> creates an on-disk file >> /tmp/testrepository/This+is+a+test.txt >> containing the provided content. >> >> The first assert works fine. >> >> The second assert fails, because it looks for a file named >> /tmp/testrepository/this+is+a+test.txt >> which is of course not found on case-sensitive operating systems. The >> getText call then returns an empty string. >> >> Is jspwiki supposed to support pageName lookups that vary by case (ie the >> test is right, and jspwiki has a bug), or are pageNames expected to be >> case-sensitive on case-sensitive systems (ie the unit test case has a bug)? >> >> Thanks, >> Simon >> > > -- met vriendelijke groet, Harry Metske Telnr. +31-548-512395 Mobile +31-6-51898081
