[jira] [Commented] (JSPWIKI-1131) Lucene Index not updated on edits/new page

2020-11-10 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

Hi [~juanpablo],

I just repeated the tests described in 
https://issues.apache.org/jira/browse/JSPWIKI-1131?focusedCommentId=17228500=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17228500
 with commit 58d0820bf0185744e645c00d74e6ae246c8c91ca and it works as expected! 
Thank a lot!

> Lucene Index not updated on edits/new page
> --
>
> Key: JSPWIKI-1131
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1131
> Project: JSPWiki
>  Issue Type: Bug
>  Components: Search
>Affects Versions: 2.11.0-M7
> Environment: * Debian 10
>  * Tomcat 9: 9.0.31-1~deb10u2
>  * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
>  * JSPWiki 2.11.0-M7
>Reporter: FP
>Priority: Critical
> Fix For: 2.11.0-M8
>
> Attachments: exception.txt, illegal-page-name.txt
>
>
> It seems that the lucene search index is not updated when a user edits an 
> existing page or creates a new page. In both cases, the page is not found 
> when someone searches for it.
> Search works as expected when:
>  * Tomcat is stopped
>  * The files in the {{lucene}} directory are removed
>  * Tomcat is started
>  * Wait until the Lucene Indexer thread finishes reindexing
> The following exception occurs when a page is edited (full stack trace 
> attached):
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (JSPWIKI-1131) Lucene Index not updated on edits/new page

2020-11-10 Thread Jira


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

Juan Pablo Santos Rodríguez commented on JSPWIKI-1131:
--

Hi [~uo5waiBil9],

thanks for your time and patience pursuing this one; based on your info I was 
able to finally reproduce the bug and just pushed the fix, it should be 
available with 2.11.0-M8-git-04. 

The code responsible of orchestrating the page save + indexing was retrieving 
the page from the Context, performing the save and the indexing the page, 
without taking into account the new page version. This was fine with the 
FileSystemProvider, but not with the VersioningFileProvider. Now this piece of 
code ensures that the search indexing always indexes the page last version + 
there are a couple more unit tests to ensure this behaviour. 

Would you mind giving a try to latest master and confirming that the issue is 
fixed?

thanks + best regards

> Lucene Index not updated on edits/new page
> --
>
> Key: JSPWIKI-1131
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1131
> Project: JSPWiki
>  Issue Type: Bug
>  Components: Search
>Affects Versions: 2.11.0-M7
> Environment: * Debian 10
>  * Tomcat 9: 9.0.31-1~deb10u2
>  * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
>  * JSPWiki 2.11.0-M7
>Reporter: FP
>Priority: Critical
> Fix For: 2.11.0-M8
>
> Attachments: exception.txt, illegal-page-name.txt
>
>
> It seems that the lucene search index is not updated when a user edits an 
> existing page or creates a new page. In both cases, the page is not found 
> when someone searches for it.
> Search works as expected when:
>  * Tomcat is stopped
>  * The files in the {{lucene}} directory are removed
>  * Tomcat is started
>  * Wait until the Lucene Indexer thread finishes reindexing
> The following exception occurs when a page is edited (full stack trace 
> attached):
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (JSPWIKI-1131) Lucene Index not updated on edits/new page

2020-11-10 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on JSPWIKI-1131:
--

Commit b5dda3813c66820fdd29e43a593ea178ee837f03 in jspwiki's branch 
refs/heads/master from juanpablo
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=b5dda38 ]

JSPWIKI-1131: Ensure latest version of page gets indexed, so changes using 
VersioningFileProvider get returned by searches


> Lucene Index not updated on edits/new page
> --
>
> Key: JSPWIKI-1131
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1131
> Project: JSPWiki
>  Issue Type: Bug
>  Components: Search
>Affects Versions: 2.11.0-M7
> Environment: * Debian 10
>  * Tomcat 9: 9.0.31-1~deb10u2
>  * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
>  * JSPWiki 2.11.0-M7
>Reporter: FP
>Priority: Critical
> Fix For: 2.11.0-M8
>
> Attachments: exception.txt, illegal-page-name.txt
>
>
> It seems that the lucene search index is not updated when a user edits an 
> existing page or creates a new page. In both cases, the page is not found 
> when someone searches for it.
> Search works as expected when:
>  * Tomcat is stopped
>  * The files in the {{lucene}} directory are removed
>  * Tomcat is started
>  * Wait until the Lucene Indexer thread finishes reindexing
> The following exception occurs when a page is edited (full stack trace 
> attached):
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)