lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Matheis (steffkes) (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3205) Better error reporting from Analysis UI
Date Tue, 06 Mar 2012 09:02:58 GMT

    [ 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


Mime
View raw message