You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/10/23 00:31:00 UTC

[jira] [Commented] (SOLR-13824) JSON Request API to reject anything after JSON object is over

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

ASF subversion and git services commented on SOLR-13824:
--------------------------------------------------------

Commit afdb80069cc7a7972411b90dd08847cac574e3dd in lucene-solr's branch refs/heads/jira/SOLR-13822 from Mikhail Khludnev
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=afdb800 ]

SOLR-13824: reject prematurely closed curly bracket in JSON.


> JSON Request API to reject anything after JSON object is over
> -------------------------------------------------------------
>
>                 Key: SOLR-13824
>                 URL: https://issues.apache.org/jira/browse/SOLR-13824
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: JSON Request API
>            Reporter: Mikhail Khludnev
>            Assignee: Mikhail Khludnev
>            Priority: Major
>             Fix For: 8.4
>
>         Attachments: SOLR-13824.patch, SOLR-13824.patch, SOLR-13824.patch, SOLR-13824.patch
>
>
> {code:java}
> json={query:"content:foo", facet:{zz:{field:id}}}
> {code}
> this works fine, but if we mistype {{}}} instead of {{,}}
> {code:java}
> json={query:"content:foo"} facet:{zz:{field:id}}}
> {code}
> It's captured only partially, here's we have under debug
> {code:java}
>   "json":{"query":"content:foo"},
> {code}
> I suppose it should throw an error with 400 code.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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