[ 
https://issues.apache.org/jira/browse/SOLR-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875318#action_12875318
 ] 

Lance Norskog commented on SOLR-1940:
-------------------------------------

When does this happen? 

The 'Schema' and 'Config' tabs in admin/index.jsp use ShowFileRequestHandler to 
fetch schema.xml and solrconfig.xml.
ShowAdminFileHandler gives a null content type by default. admin/index.jsp is 
apparently supposed to pass XML as the desired type since it knows it is 
pulling XML files.
 


> SolrDispatchFilter sets content type as NULL
> --------------------------------------------
>
>                 Key: SOLR-1940
>                 URL: https://issues.apache.org/jira/browse/SOLR-1940
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Lance Norskog
>
> o.a.s.h.SolrDispatchFilter can set the output Content-Type to a null pointer 
> instead of a string. Under websphere this results in a NullPointerException. 
> This is the offending code: 
> .bq response.setContentType(responseWriter.getContentType(solrReq, solrRsp));
> Suggestions: either use a default content type or do not set the content 
> type. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to