Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8001

UnescapedCharSequence Bugs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.1
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      There are a couple of issues with UnescapedCharSequence:

      1. The private constructor is not used anywhere (and if it were, it would throw exceptions)
      2. The ToEscapedString() overload has an invalid condition that will only evaluate to true if the string has a length of 0.

      There are no tests for UnescapedCharSequence so these issues have gone unnoticed for quite some time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nightowl888 Shad Storhaug
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: