You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Karl Stoney (Jira)" <ji...@apache.org> on 2024/04/18 08:19:00 UTC

[jira] [Created] (SOLR-17237) JSON Writer appears to return invalid JSON when binary fields are used

Karl Stoney created SOLR-17237:
----------------------------------

             Summary: JSON Writer appears to return invalid JSON when binary fields are used
                 Key: SOLR-17237
                 URL: https://issues.apache.org/jira/browse/SOLR-17237
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: JSON Request API
    Affects Versions: 9.5.0
            Reporter: Karl Stoney
         Attachments: Screenshot 2024-04-18 at 09.16.23.png

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
```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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