[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-09 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

Hi [~juanpablo],

I built commit 9406f01b338a643e37ea124ef8d5e794d709859b and was able to 
pinpoint the issue to the use of `VersioningFileProvider` as page provider.
 * The steps below were all executed on the same page: `TestLucene`
 * The data directory only contained the wikipages-de at the start of the test
 * Lucene index was rebuilt before starting the test

||Version before||Action||Version after||Searches||
|–|Create page and add "correct"|1|"correct": ✔|
|1|Add "horse"|2|"correct" ✔ "horse" ✘|
|2|Add "battery"|3|"correct" ✔ "horse" ✔ "battery" ✘|
|3|Add "staple"|4|"correct" ✔ "horse" ✔ "battery" ✔ "staple" ✘|
 * It seems that the indexer does not pick up the latest version of the file 
but the version before. The file TestLucene.txt in JSPWiki's pages directory 
always contains the correct (=latest) version of the page and the corresponding 
files in `OLD/TestLucene` seem to be correct, too.
 * The following debug log entries are recorded when after adding "horse" (= 
row2):

{code:java}
DEBUG org.apache.wiki.WatchDog - JSPWiki Lucene Indexer: Entering state 
Emptying index queue, expected completion in 60 s
DEBUG org.apache.wiki.search.LuceneSearchProvider - Updating Lucene index for 
page 'TestLucene'...
DEBUG org.apache.wiki.search.LuceneSearchProvider - Indexing TestLucene...
DEBUG org.apache.wiki.providers.CachingAttachmentProvider - Listing attachments 
for WikiPage [Wiki:TestLucene,ver=1,mod=Mon Nov 09 11:04:08 CET 2020]
DEBUG org.apache.wiki.providers.CachingAttachmentProvider - LIST from cache, 
TestLucene, size=0
DEBUG org.apache.wiki.search.LuceneSearchProvider - Done updating Lucene index 
for page 'TestLucene'.
DEBUG org.apache.wiki.WatchDog - JSPWiki Lucene Indexer: Exiting state{code}
Some additional notes:
 * Search works as expected, once I switch from `VersioningFileProvider` to 
`FileSystemProvider`
 * The setting `jspwiki.usePageCache` (true in may case) does not change the 
behavior.
 * The setting `jspwiki.lucene.indexdelay` does not change the behavior.

> 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-10-15 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

Hi [~juanpablo] ,

I built commit 1042544144954d9895ae8d2d2c49c0ca52ed47e7 and retested it with my 
big repository and wikipages-de as built with the mentioned commit. The results 
are identical in both setups. The steps are:
 * Stop tomcat and purge lucene's index
 * Start JSPWiki and wait until the index is generated
 * Login
 * Search for an existing word: found
 * Edit any existing page and add a word to it (e.g. _kinship_)
 * Search for _kinship_: not found
 * Create a new page and add _kinship_ to it, save.
 * Search for _kinship_ again: the only search result is the new page
 * Stop tomcat and purge lucene's index
 * Start JSPWiki and wait until the index is generated
 * Login
 * Search again for _kinship_: found on both pages

The timestamps and files in the index directory are updated with each relevant 
step. The wikipages seem to be sufficient to trigger my issue.

> 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] [Updated] (JSPWIKI-1131) Lucene Index not updated on edits/new page

2020-10-07 Thread FP (Jira)


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

FP updated JSPWIKI-1131:

Attachment: illegal-page-name.txt

> 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
> 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-10-07 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

Hi [~juanpablo] ,

thanks a lot for your patience, I really appreciate it!

I used luke to inspect the lucene index and I still see the odd behavior 
regarding existing/new pages. Here are the steps I took:
 * Recorded the timestamp of the lucene directory.
 * Edited a page that has a single sentence in it. No ACL rules or any markup. 
There, I added the word 'kinship'.
 * Recorded the timestamp of the lucene directory and compared them with the 
previous timestamps. They changed and new files were added.
 * Opened the index in luke (ro) and searched for 'contents:kinship' - No 
matches in luke (nor jspwiki search). (number of documents: 13424; number of 
terms: 229559)
 * Recorded the timestamp of the lucene directory
 * Created a new page `TestLucene9` and added the word 'kinship'.
 * Compared the timestamps again; they changed once again.
 * Opened the index in luke (ro) and searched for 'contents:kinship' - 1 match 
on the page 'TestLucene9'. Same results in jspwiki search. (number of 
documents: 13425; number of terms: 229562).

The debug log entries report success for index updating: "Done updating Lucene 
index for page '$page'."

Just to make sure that 'kinship' is a word that gets picked up by lucene:
 * Stop tomcat
 * Remove the lucene directory
 * Start tomcat and waited until the lucene index was rebuilt
 * Opened the index in luke (ro) and searched for 'contents:kinship' - 2 
matches on the pages 'TestLucene9' the existing one. Same results in jspwiki 
search. (number of documents: 13425; number of terms: 229516).

> 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
> Attachments: exception.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-10-02 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

These are the steps to setup the development snapshot:
 * Build 43a15c85600d33054eec8fea8c7b622dd582d493 via `mvn clean package`
 * Setup a fresh Debian 10 host.
 * Copy the data directory from the existing installation (~ 21 GB of wiki 
pages and attachments)
 * Setup my build. There are no old classes or lucene indices lingering around. 
Everything is setup afresh.
 * Start tomcat

The lucene index is created from scratch as the log reports:
{code:java}
[JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider - 
Starting Lucene reindexing, this can take a couple of minutes... 
[...]
[JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider - 
Full Lucene index finished in 101851 milliseconds{code}
I repeated the exact same steps as mentioned in my previous comment. The 
behavior is identical:
 * Words on new pages are found immediately.
 * Words on existing pages are not recognized by the search. A restart of 
tomcat does not find those new words either. The search only recognizes those 
words after deleting the lucene indices and let JSPWiki rebuild them from 
scratch.

During testing, I noticed the following messages/exceptions. I don't know if 
those effect the search (but I suppose no, as I edited pages that are OK):
 * 
{code:java}
[main] INFO org.apache.wiki.parser.JSPWikiMarkupParser - Wiki : Foo - Failed to 
insert plugin: Could not find plugin BubbleChartPlugin{code}

 * 
{code:java}
org.apache.wiki.api.exceptions.ProviderException: Illegal page name{code}

The "Illegal page name" page name exception points towards 
[https://github.com/apache/jspwiki/blob/f47298624be7bfc277d12e12437d68cfbc793d0c/jspwiki-main/src/main/java/org/apache/wiki/pages/DefaultPageManager.java#L500].
 Until now, I was unable to find the culprit.

> 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
> Attachments: exception.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-10-01 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

I built 43a15c85600d33054eec8fea8c7b622dd582d493 via `mvn clean package` and 
updated our installation. The exception when a user saves the page is now gone. 
But I noticed the following:
 * New pages are indexed immediately: created a new page »TestLucene1« and 
provided the following content: »correct horse battery staple«. The search for 
each of the words above presented the »TestLucene1« page.
 * Edited 3 randomly selected pages and also added the content »correct horse 
battery staple« to them. The search for each of the words above found the page 
»TestLucene1« as before but none of the randomly edited pages.

One of the 3 edited pages is called »Changelogs«. With debugging enabled, I can 
see these lines in the log:
{code:java}
[...]
[JSPWiki Lucene Indexer] DEBUG org.apache.wiki.WatchDog - JSPWiki Lucene 
Indexer: Entering state Emptying index queue, expected completion in 60 s
[JSPWiki Lucene Indexer] DEBUG org.apache.wiki.search.LuceneSearchProvider - 
Updating Lucene index for page 'Changelogs'...
[JSPWiki Lucene Indexer] DEBUG org.apache.wiki.search.LuceneSearchProvider - 
Indexing Changelogs...
[JSPWiki Lucene Indexer] DEBUG 
org.apache.wiki.providers.CachingAttachmentProvider - Listing attachments for 
WikiPage [Wiki:Changelogs,ver=137,mod=Thu Oct 01 13:58:29 CEST 2020]
[JSPWiki Lucene Indexer] DEBUG 
org.apache.wiki.providers.CachingAttachmentProvider - LIST from cache, 
Changelogs, size=8
[JSPWiki Lucene Indexer] DEBUG org.apache.wiki.search.LuceneSearchProvider - 
Done updating Lucene index for page 'Changelogs'.
[JSPWiki Lucene Indexer] DEBUG org.apache.wiki.WatchDog - JSPWiki Lucene 
Indexer: Exiting state Emptying index queue
[...]{code}
In my opinion, the search results should pop up as soon as indexing is complete 
as depicted in the logs. This is not the case.

> 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
> Attachments: exception.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-10-01 Thread FP (Jira)


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

FP commented on JSPWIKI-1131:
-

Yes, will do so soonish.

> 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
> Attachments: exception.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] [Created] (JSPWIKI-1133) Can't search for: a

2020-09-15 Thread FP (Jira)
FP created JSPWIKI-1133:
---

 Summary: Can't search for: a
 Key: JSPWIKI-1133
 URL: https://issues.apache.org/jira/browse/JSPWIKI-1133
 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


There are no search results when a user searches for »a« (just the single 
letter, without »«). Every other single letter, e.g. »b«, … works fine.

Page count: > 5000 with lots of pages containing the letter »a«.



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


[jira] [Created] (JSPWIKI-1132) Table plugin:

2020-08-26 Thread FP (Jira)
FP created JSPWIKI-1132:
---

 Summary: Table plugin: 
 Key: JSPWIKI-1132
 URL: https://issues.apache.org/jira/browse/JSPWIKI-1132
 Project: JSPWiki
  Issue Type: Bug
  Components: Plugins
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
 Attachments: table.stacktrace.txt

When a page with the table plugin is loaded, the following Exception is thrown:

{{java.lang.NoSuchMethodError: 'java.lang.String 
org.apache.wiki.WikiEngine.textToHTML(org.apache.wiki.WikiContext, 
java.lang.String)}}

Before, a deprecation warning is shown: {{brushed.jspwiki.tableplugin.Table 
implements deprecated org.apache.wiki.api.plugin.WikiPlugin}}

Plugin source: [https://jspwiki-wiki.apache.org/Upload.jsp?page=TablePlugin]



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


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

2020-07-21 Thread FP (Jira)


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

FP updated JSPWIKI-1131:

Description: 
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}}

  was:
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:

{{java.io.NotSerializableException: org.apache.wiki.WikiContext}}


> 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: Major
> Attachments: exception.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] [Updated] (JSPWIKI-1131) Lucene Index not updated on edits/new page

2020-07-21 Thread FP (Jira)


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

FP updated JSPWIKI-1131:

Attachment: exception.txt

> 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: Major
> Attachments: exception.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:
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



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


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

2020-07-21 Thread FP (Jira)
FP created JSPWIKI-1131:
---

 Summary: 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
 Attachments: exception.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:

{{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



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