You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2021/04/30 13:51:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17337403#comment-17337403 ]
Jan Høydahl commented on SOLR-15370:
------------------------------------
Thanks for the report. I hope you know that the bin/post tool is not indended for production use, so this is a fairly low priority issue.
However, feel free to submit a Pull Request with a fix.
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org