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 "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/11/12 16:38:50 UTC
[jira] Resolved: (SOLR-394) Ruby response writer emits invalid
integers for numbers stored with leading zeros
[ https://issues.apache.org/jira/browse/SOLR-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-394.
-------------------------------
Resolution: Fixed
I just committed a fix for this.
> Ruby response writer emits invalid integers for numbers stored with leading zeros
> ---------------------------------------------------------------------------------
>
> Key: SOLR-394
> URL: https://issues.apache.org/jira/browse/SOLR-394
> Project: Solr
> Issue Type: Bug
> Components: clients - ruby - flare
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
>
> There is an issue with the ruby response (and others too, perhaps json and python) when an "integer" field is sent with leading zeros. For example (from a report to ruby-dev@lucene), the Solr response is:
> {'responseHeader'=>{'status'=>0,'QTime'=>1,'params'=>{'wt'=>'ruby','rows'=>'1','start'=>'5','q'=>'accounting','fl'=>'zip_code','qt'=>'standard'}},'response'=>{'numFound'=>15005,'start'=>5,'docs'=>[{'zip_code'=>[08817]}]}}
> Which gives this error:
> solr/response/ruby.rb:30:in `initialize': invalid ruby code:
> (eval):1:in `initialize': compile error (Solr::Exception) (eval):1:
> Illegal octal digit
> ----
> I had proposed prefixing all integer ruby output with '0d' which would do the trick nicely. Yonik, however, proposed simply stripping leading zeros for json and subclasses.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.