lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Updated: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field
Date Tue, 18 Aug 2009 22:42:14 GMT


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:
>             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(
>         at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(
>         at org.apache.solr.core.SolrCore.execute(
>         at org.apache.solr.servlet.SolrDispatchFilter.execute(
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> {code}

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

View raw message