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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.0, 4.1, 6.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              hossman Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: