[
https://issues.apache.org/jira/browse/SOLR-15370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mayya Sharipova updated SOLR-15370:
-----------------------------------
Security: (was: Public)
> 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
> Components: SimplePostTool
> Reporter: QualiteSys QualiteSys
> Priority: Minor
>
> 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]