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

[jira] [Updated] (SOLR-15370) SimplePostTool.java line 1154 in NPE when content-type is absent

     [ https://issues.apache.org/jira/browse/SOLR-15370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

QualiteSys QualiteSys updated SOLR-15370:
-----------------------------------------
    Description: 
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];

 

> 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: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org