You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2018/12/14 14:18:00 UTC

[jira] [Assigned] (SOLR-10975) New Admin UI Query does not URL-encode the query produced in the URL box

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

Jan Høydahl reassigned SOLR-10975:
----------------------------------

    Assignee: Jan Høydahl

> 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
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: master (8.0), 7.7
>
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org