[ 
https://issues.apache.org/jira/browse/JSPWIKI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18148638#comment-18148638
 ] 

Arturo Bernal commented on JSPWIKI-572:
---------------------------------------

A follow-up to my earlier comment. This time I also looked at the empty 
entries, and I used a running wiki and master-2.x. On a running Tomcat with the 
3.0.2-SNAPSHOT war I created 17 pages (the 16 case combinations of TEST and 
TEST2) and a page with the IndexPlugin: it lists all 17 pages, grouped under T 
and t, and no entry is empty. The same test passes on master-2.x. The empty 
entries appear in the code when a page name is blank, and the plugin has no 
such name in the list. The file system was case sensitive (Linux) and the 
provider was the default one, so Windows, macOS and other providers are still 
not covered.

The IndexPlugin had no tests, so I opened 
https://github.com/apache/jspwiki/pull/651 with tests for the grouping, the 
empty entries and the case-only names (skipped on file systems that do not 
distinguish the case). I am leaving the issue open, as before.

> IndexPlugin does not list all pages
> -----------------------------------
>
>                 Key: JSPWIKI-572
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-572
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 2.8.2
>         Environment: JSPWIKI 2.8.2 with websphere running on AIX
>            Reporter: Bruno Peeters
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: test-combinations.jpg, test-pageindex-empty.jpg, 
> test-pageindex.jpg
>
>
> We have noticed that the IndexPlugin does not list all pages with the wiki. 
> We discovered this because two users (from other divisions) both created a 
> page with a very similar name, the first one in capitals, the other one with 
> only one letter in lower case.
> I was able to reproduce this problem. I created all 16 combinations of upper 
> and lower case for the word "TEST" (see attachment). This resulted in 8 
> different wiki pages. Only 6 of them are listed in the output of the 
> IndexPlugin (see attachment).
> We have noticed another strange behaviour of the IndexPlugin, perhaps related 
> to the same cause. In the output of this plugin, there are empty entries 
> appearing : <entry1>, , <entry2>. What even makes it stranger is that these 
> empty entries are appearing at random places. After a refresh of the 
> pageindex page in the browser, the empty entries occur at another place in 
> the document. Sometimes there are no such empty entries, sometimes there is 
> only one, and sometimes there are several (mostly 2). Luckily this behaviour 
> reproduced itself for the "test" pages I created (see above). It looks that 
> the empty entries are "real" pages which aren't listed.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to