[
https://issues.apache.org/jira/browse/SOLR-15370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337625#comment-17337625
]
Gus Heck commented on SOLR-15370:
---------------------------------
This code is trying to determine which if any compression to use to unpack the
content at this point. Anything other than plain text would be garbage anyway
if not properly uncompressed...
> SimplePostTool.java line 1154 in NPE when content-type is absent
> ----------------------------------------------------------------
>
> Key: SOLR-15370
> URL: https://issues.apache.org/jira/browse/SOLR-15370
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SimplePostTool
> Reporter: QualiteSys QualiteSys
> Priority: Major
>
> Using PostTool with data=web and incomplete web server (the content-type
> header is missing) leads to a faillure of SimplePostTool.
> The
> [https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/util/SimplePostTool.java]
> in line 1153 fails because rawContentType is null
> String rawContentType = conn.getContentType();
> String type = rawContentType.split(";")[0];
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]