You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/03 18:33:05 UTC
[jira] [Commented] (SOLR-7647) ExportHandler does not escape
special Characters
[ https://issues.apache.org/jira/browse/SOLR-7647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613294#comment-14613294 ]
ASF subversion and git services commented on SOLR-7647:
-------------------------------------------------------
Commit 1689045 from [~joel.bernstein] in branch 'dev/trunk'
[ https://svn.apache.org/r1689045 ]
SOLR-7441, SOLR-7647: Improve overall robustness of the Streaming stack: Streaming API, Streaming Expressions, Parallel SQL
> ExportHandler does not escape special Characters
> ------------------------------------------------
>
> Key: SOLR-7647
> URL: https://issues.apache.org/jira/browse/SOLR-7647
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.10.3
> Reporter: Sven Kiesewetter
> Assignee: Joel Bernstein
> Priority: Minor
>
> We use Solr 4.10.3 and have configured an /export SearchHandler in addition to the default SearchHandler /select.
> The handler follows the example from section "Exporting Result Sets" of the Solr user guide (v4.10).
> {code:xml}
> <requestHandler name="/export" class="solr.SearchHandler">
> <lst name="invariants">
> <str name="rq">{!xport}</str>
> <str name="wt">xsort</str>
> <str name="distrib">false</str>
> <str name="fl">username,description</str>
> </lst>
> <arr name="components">
> <str>query</str>
> </arr>
> </requestHandler>
> {code}
> The description field may contain line breaks (\n) and quotation marks (").
> When using the /select handler those characters are properly escaped. E.g. we get following value in the response:
> {code}
> "description":"Lorem ipsum\n\ndolor sit amet. \"hello\" world \" test....",
> {code}
> BUT when using the /export handler those characters are NOT escaped. We
> get:
> {code}
> "description":"Lorem ipsum
> dolor sit amet. "hello" world " test...."
> {code}
> The latter is not valid JSON in our understanding.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org