You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2025/04/14 03:24:00 UTC

[jira] [Created] (SOLR-17743) V2 API: Raw uploads should use correct content-type: application/octet-stream not JSON

David Smiley created SOLR-17743:
-----------------------------------

             Summary: V2 API: Raw uploads should use correct content-type: application/octet-stream not JSON
                 Key: SOLR-17743
                 URL: https://issues.apache.org/jira/browse/SOLR-17743
             Project: Solr
          Issue Type: Bug
          Components: v2 API
            Reporter: David Smiley
            Assignee: David Smiley


When the V2 Upload file API is called, the content-type header indicates JSON but actually it's anything, probably not JSON.  The general type is "application/octet-stream".  

Furthermore, for non-raw, JacksonContentWriter is used but it should not accept the content type as a param; Jackson is always JSON (notwithstanding CBOR/Smile but we don't do that now).



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