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

IllegalArgumentException in QueryParserBase.parse()

    Details

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

      Description

      I have encountered a very special case where parsing a certain String with the MultiFieldQueryParser causes an IllegalArgumentException thrown in the constructor of org.apache.lucene.util.automaton.RegExp. I would have expected a ParseException instead (as stated in the API doc).

      QueryParser parser = new MultiFieldQueryParser(...);
      parser.parse("/x)/");
      

      The "evil" search string is /x)/.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              obecker Oliver Becker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: