Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 25517 invoked from network); 18 Aug 2009 22:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 22:42:18 -0000 Received: (qmail 40294 invoked by uid 500); 18 Aug 2009 22:42:37 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 40219 invoked by uid 500); 18 Aug 2009 22:42:36 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 40173 invoked by uid 99); 18 Aug 2009 22:42:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 22:42:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 22:42:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F279529A0014 for ; Tue, 18 Aug 2009 15:42:14 -0700 (PDT) Message-ID: <1483111742.1250635334992.JavaMail.jira@brutus> Date: Tue, 18 Aug 2009 15:42:14 -0700 (PDT) From: "Hoss Man (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Updated: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field In-Reply-To: <2122551389.1250629514870.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-1371: --------------------------- Attachment: SOLR-1371.patch patch that fixes the LukeRequestHandler, and adds a new "MinimalSchemaTest" to serve as a place to more tests like this in the future. In an attempt to proactively spot problems like this, it uses the catchall solrconfig.xml that many other test use and does some introspection to try and hit any request handler it can find with trivial input to make sure it doesn't barf. to make this work, i changed QueryElevationComponentTest to use a new solrconfig.xml (and in the process discovered a bug in the test where it wasn't hitting hte request handler it thought it was) any objects > LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field > --------------------------------------------------------------------- > > Key: SOLR-1371 > URL: https://issues.apache.org/jira/browse/SOLR-1371 > Project: Solr > Issue Type: Bug > Components: web gui > Affects Versions: 1.3 > Reporter: Hoss Man > Attachments: SOLR-1371.patch > > > if a schema doesn't have a uniqueKey field specified, teh schema explorer won't work, and logs this exception... > {code} > SEVERE: java.lang.NullPointerException > at org.apache.solr.handler.admin.LukeRequestHandler.getSchemaInfo(LukeRequestHandler.java:373) > at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:133) > at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1299) > at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) > at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.