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

JSON Request API to reject anything after JSON object is over

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: JSON Request API
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: