Matus Zamborsky created SOLR-10706:
--------------------------------------
Summary: SolrJ wrongfully uses URLEncoder.encode for constructing
url fragments
Key: SOLR-10706
URL: https://issues.apache.org/jira/browse/SOLR-10706
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: SolrJ
Reporter: Matus Zamborsky
URLEncoder.encode should be only used for encoding String to
application/x-www-form-urlencoded MIME format as is stated in the javadoc.
There is a difference between URL encoding url fragments and http request
parameters in application/x-www-form-urlencoded MIME format.
For one, the space should be represented by + sign in URL, but
URLEncoder.encode produce %20.
This is disastorious when I try to use SolrJ and send someting like:
{!parent which=type:cz.inqool.uas.index.solr.MySolrObject}+(name:testName)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]