You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Matus Zamborsky (JIRA)" <ji...@apache.org> on 2017/05/18 12:24:04 UTC
[jira] [Created] (SOLR-10706) SolrJ wrongfully uses
URLEncoder.encode for constructing url fragments
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org