lucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/SOLR-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034151#comment-13034151
] 

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: https://issues.apache.org/jira/browse/SOLR-2520
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Benson Margulies
>
> Please see http://timelessrepo.com/json-isnt-a-javascript-subset.
> 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: http://www.atlassian.com/software/jira

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


Mime
View raw message