/[Apache-SVN]
ViewVC logotype

Revision 1738079


Jump to revision: Previous Next
Author: catholicon
Date: Thu Apr 7 02:42:40 2016 UTC (8 years ago)
Changed paths: 4
Log Message:
OAK-4126: Sugesstion and spellcheck queries throw exception if result contain lucene query character (backported r1735052, r1736176 to 1.2 branch)

Note, I have escaped acl check query for spellcheck too. But, I could not come up with a test case where words with special characters are returned for spellcheck (most probably it requires a custom analzer which doesn't break on special chars... but that seems too much effort to add a test for an obvious fix)

Also, avoid loops when suggest/spellcheck query throws exception



Changed paths

Path Details
Directoryjackrabbit/oak/branches/1.2/ modified , props changed
Directoryjackrabbit/oak/branches/1.2/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java modified , text changed
Directoryjackrabbit/oak/branches/1.2/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java modified , text changed
Directoryjackrabbit/oak/branches/1.2/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexSuggestionTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26