Hoss Man created SOLR-4176:
------------------------------

             Summary: analysis ui: javascript not properly handling URL 
decoding of input
                 Key: SOLR-4176
                 URL: https://issues.apache.org/jira/browse/SOLR-4176
             Project: Solr
          Issue Type: Bug
          Components: web gui
    Affects Versions: 4.0
            Reporter: Hoss Man


attempting to input values containing "%" in the analysis UI causes errors.

Example of the bug, using the solr example configs...

1) load http://localhost:8983/solr/#/collection1/analysis in a browser
2) select field type "text_general"
3) enter into either text box: {{{foo%bar}}
4) click the "Analyze Values" button.

results...

* Window location is updated to be: 
http://localhost:8983/solr/#/collection1/analysis?analysis.fieldvalue=foo%25bar&analysis.query=&analysis.fieldtype=text_general&verbose_output=1
** Note: "%" has been properly encoded in URL
* page does not display any analyis, and text areas are now empty (although 
text_general field type is still selected)
* web dev error console indicates...{noformat}Error: URIError: malformed URI 
sequence
Source File: http://localhost:8983/solr/js/scripts/analysis.js
Line: 132
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to