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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5
    • Fix Version/s: 6.5.1
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: