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

fl parsing is sensitive to newlines at the end of field names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-BETA
    • 4.0, 4.1, 6.0
    • None
    • None

    Description

      As reported by giovanni.bricconi on the user list, there is a bug in "fl" parsing that causes solr to get confused when a field name is followed by a newline character – eg: in a requestHandler default like...

      <!-- newlines showing using "$" -->$
      <str name="fl">$
         sku,store_slug$  
      </str>$
      

      ...this results in solr assuming it should use function parsing to evaluate the field name, which can cause missleading errors if the field name can't be used in a function (eg: "can not use FieldCache on multivalued field: store_slug")

      Attachments

        1. SOLR-3916.patch
          5 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: