You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ry...@apache.org on 2008/08/11 04:14:44 UTC
svn commit: r684623 - /lucene/solr/trunk/src/webapp/web/admin/_info.jsp
Author: ryan
Date: Sun Aug 10 19:14:43 2008
New Revision: 684623
URL: http://svn.apache.org/viewvc?rev=684623&view=rev
Log:
SOLR-545 -- sending error code rather then throwing an exception in jsp
Modified:
lucene/solr/trunk/src/webapp/web/admin/_info.jsp
Modified: lucene/solr/trunk/src/webapp/web/admin/_info.jsp
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/webapp/web/admin/_info.jsp?rev=684623&r1=684622&r2=684623&view=diff
==============================================================================
--- lucene/solr/trunk/src/webapp/web/admin/_info.jsp (original)
+++ lucene/solr/trunk/src/webapp/web/admin/_info.jsp Sun Aug 10 19:14:43 2008
@@ -29,7 +29,8 @@
//
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
if (core == null) {
- throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "missing core name" );
+ response.sendError( 404, "missing core name in path" );
+ return;
}
SolrConfig solrConfig = core.getSolrConfig();