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

HttpJdkSolrClient doesn't encode curly braces etc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.6
    • 9.6.1
    • SolrJ
    • None

    Description

      Ref https://issues.apache.org/jira/browse/SOLR-599?focusedCommentId=17842429#comment-17842429 - HttpJdkSolrClient should use SolrParams' toQueryString() method when constructing URLs to that all URL-unsafe characters are encoded. It's implicitly using the toString() method currently which is intended for logging etc purposes.

      Attempting to use alternate query parsers in requests as shown below will currently fail as the curly braces aren't encoded.

      myquery.set("fq", "{!terms f=myfield}value1,value2"); 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andywebb1975 Andy Webb
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h