Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10404

The "fetch" streaming expression should escape join values in generated query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.5
    • 6.5.1
    • None
    • None

    Description

      The "fetch" streaming expression joins data from another collection. Example:
      expr=fetch(collection,search(...), on="fieldA=fieldB"
      Internally, it does this by building a Solr query that looks like fieldB:(value1 value2 value3). But those values are not escaped; they should be. See FetchStream.java line 233. The ramification is that, for example, if a value contains a colon, then this isn't going to work.

      Attachments

        1. SOLR_10404.patch
          4 kB
          David Smiley

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: