[ 
https://issues.apache.org/jira/browse/SOLR-10975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elaine Cario updated SOLR-10975:
--------------------------------
    Summary: New Admin UI Query does not URL-encode the query produced in the 
URL box  (was: New Admin UUI Query does not URL-encode the query produced in 
the URL box)

> New Admin UI Query does not URL-encode the query produced in the URL box
> ------------------------------------------------------------------------
>
>                 Key: SOLR-10975
>                 URL: https://issues.apache.org/jira/browse/SOLR-10975
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI
>    Affects Versions: 6.4.2
>            Reporter: Elaine Cario
>
> We found that the new Admin UI (we're using 6.4.2) properly submits a query 
> with non-alphanumeric for searching, but that the clickable URL for that 
> query does not contain URL-encoded characters.  If using that URL to execute 
> the query later, an incorrect query is executed.
> If you revert back to using the deprecated Admin UI, it works fine.
> To reproduce:
> Open the Query form in the Admin UI, and enter a query string containing 
> punctuation characters, e.g. "http://someuri#123";, and click on debugQuery. 
> The debug shows the correct query in the raw query string. 
> {code}"\"http://someuri#123\""{code}
> The URL produced for the query however is not properly URL-encoded:
> {code}
> http://.../solr/collectionX/select?debugQuery=on&df=body&indent=on&q=%22http://someuri#123"&wt=json
> {code}
> If you click on this, the browser munges the query, and depending on the 
> query and query parser,  you may get a syntax error, the query string may get 
> cut off, or you may get different results.
> Drop back to the old deprecated UI and do the same thing, and the URL 
> produced is fully encoded:
> {code}
> http://.../solr/shardX/select?q=%22http%3A%2F%2Fsomeuri%23123%22&df=body&wt=json&indent=true&debugQuery=true
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to