You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Bruno Peeters (JIRA)" <ji...@apache.org> on 2009/06/25 10:35:07 UTC

[jira] Created: (JSPWIKI-572) IndexPlugin does not list all pages

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


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-572) IndexPlugin does not list all pages

Posted by "Wouter Van daele (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725088#action_12725088 ] 

Wouter Van daele commented on JSPWIKI-572:
------------------------------------------

About the "empty entries" in the output: can this be caused by the fact that the IndexPlugin uses a default exclusion pattern "\\p{Cntrl}" which is US-ASCII only (see the official API documentation for Java 1.4 and up)? The wiki mentioned by Bruno is configured to be UTF-8, and some of the pages have non-ASCII characters in their name...

I was going to propose the use of "getAllPages()" when no inclusion/exclusion parameters are specified, but for larger page collections there might be a performance hit by not using the ReferenceManager (and then again: the ReferenceManager isn't necessarily the best reference on this subject if I understand the class comments correctly).

> 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
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-572) IndexPlugin does not list all pages

Posted by "Wouter Van daele (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748120#action_12748120 ] 

Wouter Van daele commented on JSPWIKI-572:
------------------------------------------

Sorry, I have cleaned out some of my trial code from my workspace, so I can't confirm that it does the job. Since getAllPages() goes to check the file system (at least in our configuration, since we're using the VersioningFileProvider) for a list of files representing wikipages, it should get at least the 8 wikipages created by Bruno in his test case.

Do note however that getAllPages() can only replace the ReferenceManager when no in- or exclusions are specified (or do you want to apply these on the return from getAllPages() ? ), so that it is only a partial solution to the problem. I suppose the ReferenceManager is used in other circumstances as well (I'm insufficiently familiar with the complete codebase), so I guess the choice is between replacing it or correcting its behaviour...?

> 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
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JSPWIKI-572) IndexPlugin does not list all pages

Posted by "Bruno Peeters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Peeters updated JSPWIKI-572:
----------------------------------

    Attachment: test-pageindex-empty.jpg
                test-pageindex.jpg
                test-combinations.jpg

> 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
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-572) IndexPlugin does not list all pages

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726690#action_12726690 ] 

Janne Jalkanen commented on JSPWIKI-572:
----------------------------------------

I don't think the exclusion pattern is a problem, since I've got several wikis running which are using UTF-8 chars and IndexPlugin works fine with them.

The TEST/Test problem, however, is a real bug. It's a known problem that the number of pages that gets created depends on the OS and the chosen provider.  This should be solved in the SVN trunk already.

It's quite likely that ReferenceManager is getting confused with pages that have the same name but slightly differing case.  It *should* work, but it seems that it does not. Could you confirm that getAllPages() works as expected? The performance hit is not that big.

> 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
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.