Lucene - Core
  1. Lucene - Core
  2. LUCENE-5120

AnalyzingSuggester might modify it's FST's cached root arc if payloads are used

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.4, 6.0
    • Fix Version/s: 4.4, 6.0
    • Component/s: modules/spellchecker
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      if payloads are used with AnalyzingSuggester and the payload is entirely stored on a cached root arc AnalyzingSuggester modifies the payload BytesRef.length during lookup causing assertions to trip and subsequent requests fail with an negative array index

      1. LUCENE-5120.patch
        6 kB
        Simon Willnauer

        Activity

        Hide
        Simon Willnauer added a comment -

        here is a patch - fix took 2 min figuring it out the entire day

        Show
        Simon Willnauer added a comment - here is a patch - fix took 2 min figuring it out the entire day
        Hide
        ASF subversion and git services added a comment -

        Commit 1504695 from Simon Willnauer in branch 'dev/trunk'
        [ https://svn.apache.org/r1504695 ]

        LUCENE-5120: AnalyzingSuggester might modify it's FST's cached root arc if payloads are used

        Show
        ASF subversion and git services added a comment - Commit 1504695 from Simon Willnauer in branch 'dev/trunk' [ https://svn.apache.org/r1504695 ] LUCENE-5120 : AnalyzingSuggester might modify it's FST's cached root arc if payloads are used
        Hide
        ASF subversion and git services added a comment -

        Commit 1504697 from Simon Willnauer in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1504697 ]

        LUCENE-5120: AnalyzingSuggester might modify it's FST's cached root arc if payloads are used

        Show
        ASF subversion and git services added a comment - Commit 1504697 from Simon Willnauer in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1504697 ] LUCENE-5120 : AnalyzingSuggester might modify it's FST's cached root arc if payloads are used
        Hide
        ASF subversion and git services added a comment -

        Commit 1504705 from Simon Willnauer in branch 'dev/branches/lucene_solr_4_4'
        [ https://svn.apache.org/r1504705 ]

        LUCENE-5120: AnalyzingSuggester might modify it's FST's cached root arc if payloads are used

        Show
        ASF subversion and git services added a comment - Commit 1504705 from Simon Willnauer in branch 'dev/branches/lucene_solr_4_4' [ https://svn.apache.org/r1504705 ] LUCENE-5120 : AnalyzingSuggester might modify it's FST's cached root arc if payloads are used
        Hide
        Michael McCandless added a comment -

        Argh, how awful!! Nice catch Simon ... thanks.

        Show
        Michael McCandless added a comment - Argh, how awful!! Nice catch Simon ... thanks.
        Hide
        Steve Rowe added a comment -

        Bulk close resolved 4.4 issues

        Show
        Steve Rowe added a comment - Bulk close resolved 4.4 issues

          People

          • Assignee:
            Simon Willnauer
            Reporter:
            Simon Willnauer
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development