You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan McKinley (Created) (JIRA)" <ji...@apache.org> on 2012/03/06 02:43:58 UTC

[jira] [Created] (SOLR-3205) Better error reporting from Analysis UI

Better error reporting from Analysis UI
---------------------------------------

                 Key: SOLR-3205
                 URL: https://issues.apache.org/jira/browse/SOLR-3205
             Project: Solr
          Issue Type: Bug
          Components: web gui
            Reporter: Ryan McKinley
             Fix For: 4.0


The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
 * Select a number field (int) 
 * put in invalid text (hello)
 * click Analyse Values

The UI will have a red banner, but not say anything useful.  The log file will say:
{code}
SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
{code}

Hopefully we can get the UI to say "Invalid Number: hello"


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (SOLR-3205) Better error reporting from Analysis UI

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

Stefan Matheis (steffkes) reassigned SOLR-3205:
-----------------------------------------------

    Assignee: Stefan Matheis (steffkes)
    
> Better error reporting from Analysis UI
> ---------------------------------------
>
>                 Key: SOLR-3205
>                 URL: https://issues.apache.org/jira/browse/SOLR-3205
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>            Reporter: Ryan McKinley
>            Assignee: Stefan Matheis (steffkes)
>             Fix For: 4.0
>
>
> The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
>  * Select a number field (int) 
>  * put in invalid text (hello)
>  * click Analyse Values
> The UI will have a red banner, but not say anything useful.  The log file will say:
> {code}
> SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
> 	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
> 	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
> {code}
> Hopefully we can get the UI to say "Invalid Number: hello"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3205) Better error reporting from Analysis UI

Posted by "Stefan Matheis (steffkes) (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223111#comment-13223111 ] 

Stefan Matheis (steffkes) commented on SOLR-3205:
-------------------------------------------------

bq. The new analysis UI does not behave well with invalid input.

Yes :< This is mainly related to SOLR-141, which just responds with plain text/html. The current analysis code includes basic exception handling, to get the relevant error message: https://github.com/steffkes/solr-admin/blob/master/js/scripts/analysis.js#L203 - i've extended this one yesterday because i realized that there could also be a response like the following one:

{code}<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 Invalid Number: This interface is work in progre</title>
</head>
<body><h2>HTTP ERROR 400</h2>
<p>Problem accessing /solr/analysis/field. Reason:
<pre>    Invalid Number: This interface is work in progre</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>   {code}
                
> Better error reporting from Analysis UI
> ---------------------------------------
>
>                 Key: SOLR-3205
>                 URL: https://issues.apache.org/jira/browse/SOLR-3205
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>
>
> The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
>  * Select a number field (int) 
>  * put in invalid text (hello)
>  * click Analyse Values
> The UI will have a red banner, but not say anything useful.  The log file will say:
> {code}
> SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
> 	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
> 	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
> {code}
> Hopefully we can get the UI to say "Invalid Number: hello"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3205) Better error reporting from Analysis UI

Posted by "Stefan Matheis (steffkes) (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224204#comment-13224204 ] 

Stefan Matheis (steffkes) commented on SOLR-3205:
-------------------------------------------------

Yes, pretty good - i'll update the error handling and see how it goes :>
                
> Better error reporting from Analysis UI
> ---------------------------------------
>
>                 Key: SOLR-3205
>                 URL: https://issues.apache.org/jira/browse/SOLR-3205
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>
>
> The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
>  * Select a number field (int) 
>  * put in invalid text (hello)
>  * click Analyse Values
> The UI will have a red banner, but not say anything useful.  The log file will say:
> {code}
> SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
> 	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
> 	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
> {code}
> Hopefully we can get the UI to say "Invalid Number: hello"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-3205) Better error reporting from Analysis UI

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

Stefan Matheis (steffkes) resolved SOLR-3205.
---------------------------------------------

    Resolution: Fixed
    
> Better error reporting from Analysis UI
> ---------------------------------------
>
>                 Key: SOLR-3205
>                 URL: https://issues.apache.org/jira/browse/SOLR-3205
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>            Reporter: Ryan McKinley
>            Assignee: Stefan Matheis (steffkes)
>             Fix For: 4.0
>
>
> The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
>  * Select a number field (int) 
>  * put in invalid text (hello)
>  * click Analyse Values
> The UI will have a red banner, but not say anything useful.  The log file will say:
> {code}
> SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
> 	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
> 	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
> {code}
> Hopefully we can get the UI to say "Invalid Number: hello"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3205) Better error reporting from Analysis UI

Posted by "Ryan McKinley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223708#comment-13223708 ] 

Ryan McKinley commented on SOLR-3205:
-------------------------------------

I just committed SOLR-141.  The response should now include an 'error' section.
                
> Better error reporting from Analysis UI
> ---------------------------------------
>
>                 Key: SOLR-3205
>                 URL: https://issues.apache.org/jira/browse/SOLR-3205
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>
>
> The new analysis UI does not behave well with invalid input.  To reproduce, from /#/singlecore/analysis
>  * Select a number field (int) 
>  * put in invalid text (hello)
>  * click Analyse Values
> The UI will have a red banner, but not say anything useful.  The log file will say:
> {code}
> SEVERE: org.apache.solr.common.SolrException: Invalid Number: hello
> 	at org.apache.solr.analysis.TrieTokenizer.reset(TrieTokenizerFactory.java:113)
> 	at org.apache.solr.analysis.TrieTokenizer.<init>(TrieTokenizerFactory.java:76)
> {code}
> Hopefully we can get the UI to say "Invalid Number: hello"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org