Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5938

LuceneQueryVisitor is not reusable / not thread-safe

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: Integration
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      LuceneQueryVisitor class is not really reusable in current implementation: it keeps the state of all parsed queries (which is generally fine) but it groups them by property name, returning the first query from the list all the time. That means running two search criteria like 'ct=java' and 'ct=websockets' causes the result of 'ct=java' to be returned in both cases (very easy reproducible).

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              reta Andriy Redko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: