lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <>
Subject [jira] [Commented] (SOLR-2520) Solr creates invalid jsonp strings
Date Mon, 16 May 2011 18:06:47 GMT


Benson Margulies commented on SOLR-2520:

Fun happens when you specify something in json.wrf. This demands 'jsonp' instead of json,
which results in the result being treated as javascript, not json.  wt=json&json.wrf=SOME_PREFIX
will cause Solr to respond with

     SOME_PREFIX({whatever it was otherwise going to return})

instead of just

     {whatever it was otherwise going to return}

If there is then an interesting Unicode character in there, Chrome implodes and firefox quietly

> Solr creates invalid jsonp strings
> ----------------------------------
>                 Key: SOLR-2520
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Benson Margulies
> Please see
> If a stored field contains invalid Javascript characters, and you use the query option
to ask for jsonp, solr does *not* escape some invalid Unicode characters, resulting in strings
that explode on contact with browsers.

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message