Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13824

JSON Request API to reject anything after JSON object is over

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.4
    • JSON Request API
    • None

    Description

      json={query:"content:foo", facet:{zz:{field:id}}}
      

      this works fine, but if we mistype } instead of ,

      json={query:"content:foo"} facet:{zz:{field:id}}}
      

      It's captured only partially, here's we have under debug

        "json":{"query":"content:foo"},
      

      I suppose it should throw an error with 400 code.  

      Attachments

        1. SOLR-13824.patch
          26 kB
          Mikhail Khludnev
        2. SOLR-13824.patch
          20 kB
          Mikhail Khludnev
        3. SOLR-13824.patch
          15 kB
          Mikhail Khludnev
        4. SOLR-13824.patch
          5 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

              mkhl Mikhail Khludnev
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: