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

JSON Writer appears to return invalid JSON when binary fields are used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5
    • 9.6
    • JSON Request API

    Description

      Hello,
      As per the thread on the user group, we're currently looking at upgrading to solr 9.5.0, from v8.

      We have built a fresh solr 9.5.0 from scratch, and have observed that when requesting application/json, binary fields are not quoted - thus resulting in invalid JSON.

      I found https://issues.apache.org/jira/browse/SOLR-10653, which looks very similar, and was "fixed" in 9.5.0.

      Here's an example (partial) response that you can see (truncated the actual value though):

      ```
      "PARTNER_SITES_ADVERT_STATUS":"EXPIRED",
      "DATE_OF_REGISTRATION_EPOCH":1584403200,
      "STOCK_ITEM_BINARY_FIELD":OikKAfqLb3JpZ2luU291cmNlQ0....=,
      "FUEL_CAPACITY_VALUE":59.0
      ```

      Attachments

        1. Screenshot 2024-04-18 at 09.16.23.png
          63 kB
          Karl Stoney
        2. Screenshot 2024-04-29 at 08.54.30.png
          13 kB
          Karl Stoney

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kstoney Karl Stoney
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: