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

Peter Wolanin commented on SOLR-1200:
-------------------------------------

Do we need to open another issue (maybe for 1.5) - I'd think the expected 
behavior would be to throw a specific exception anywhere in core admin that a 
core is not found, and then catch it and return a 404?

At the moment, however, you can request status for a non-existent core, etc, 
and get a 200 with some data, so this patch makes the behavior consistent, at 
least.

> NullPointerException when unloading an absent core
> --------------------------------------------------
>
>                 Key: SOLR-1200
>                 URL: https://issues.apache.org/jira/browse/SOLR-1200
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: java version "1.6.0_07"
>            Reporter: Peter Wolanin
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-1200.patch, SOLR-1200.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I try to unload a core that does not exist (e.g. it has already been 
> unloaded), Solr throws a NullPointerException
> java.lang.NullPointerException
>        at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleUnloadAction(CoreAdminHandler.java:319)
>        at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:125)
>        at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>        at 
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:301)
>        at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:174)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       ...

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

Reply via email to