[
https://issues.apache.org/jira/browse/SOLR-17263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845630#comment-17845630
]
Andy Webb commented on SOLR-17263:
----------------------------------
[https://github.com/apache/solr/pull/2433] has a fix for this. I'm a relatively
new committer and am not not sure how to proceed re merging it - should I add
this to both {{branch_9_6}} and {{main}}, and add the {{CHANGES.txt}} line
under different versions in those branches like those for SOLR-17261?
Subject to review(s) I'd also like to bring in
https://github.com/apache/solr/pull/2454 but don't know if that should be in
9.6.1 too, or wait for 9.7.0.
> HttpJdkSolrClient doesn't encode curly braces etc
> -------------------------------------------------
>
> Key: SOLR-17263
> URL: https://issues.apache.org/jira/browse/SOLR-17263
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrJ
> Affects Versions: 9.6.0
> Reporter: Andy Webb
> Priority: Major
> Fix For: 9.6.1
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> 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.
> {noformat}
> myquery.set("fq", "{!terms f=myfield}value1,value2"); {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]