lucene-dev mailing list archives

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


Hoss Man commented on SOLR-2520:

I'm confused here: As far as i can tell, the JSONResponseWriter does in fact output valid
JSON (the link mentioned points out that there are control characters valid in JSON which
are not valid in javascript, but that's what the response writer produces -- JSON) ... so
what is the bug?

And what do you mean by "the query option to ask for jsonp" ? ...  i don't see that option
in the JSONResponseWriter

(is this bug about some third party response writer?)

> 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