You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2009/08/18 23:05:14 UTC

[jira] Created: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

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


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.


[jira] Commented: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744710#action_12744710 ] 

Hoss Man commented on SOLR-1371:
--------------------------------

the fix seems pretty trivial, but i'd like to have a nice robust testcase of a "minimal" schema that we can have to help prevent little glitches like this in the future

> 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
>
> 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.


[jira] Commented: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745212#action_12745212 ] 

Shalin Shekhar Mangar commented on SOLR-1371:
---------------------------------------------

bq. any objections to me committing this before 1.4? 

Nope, please go ahead.

> 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
>            Assignee: Hoss Man
>             Fix For: 1.4
>
>         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.


[jira] Updated: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-1371:
---------------------------

    Fix Version/s: 1.4
         Assignee: Hoss Man

any objections to me committing this before 1.4? 

(by this i mean the test changes, i can't imagine anyone would object to me fixing the bug in LukeRequestHandler)

> 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
>            Assignee: Hoss Man
>             Fix For: 1.4
>
>         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.


[jira] Updated: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

Posted by "Hoss Man (JIRA)" <ji...@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.


[jira] Resolved: (SOLR-1371) LukeRequestHandler/schema.jsp errors if schema has no uniqueKey field

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-1371.
----------------------------

    Resolution: Fixed

Committed revision 806289.


> 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
>            Assignee: Hoss Man
>             Fix For: 1.4
>
>         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.