[
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15137879#comment-15137879
]
ASF subversion and git services commented on SOLR-7462:
-------------------------------------------------------
Commit 9ef144ddefe21f30c1c9ebd5246e7e03387488e1 in lucene-solr's branch
refs/heads/branch_5_4 from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9ef144d ]
SOLR-8460, SOLR-8373, SOLR-8422, SOLR-7462, SOLR-8470: Add CHANGES entries for
5.4.1.
git-svn-id:
https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_5_4@1724198
13f79535-47bb-0310-9956-ffa450edef68
> ArrayIndexOutOfBoundsException in RecordingJSONParser.java
> ----------------------------------------------------------
>
> Key: SOLR-7462
> URL: https://issues.apache.org/jira/browse/SOLR-7462
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.1
> Reporter: Scott Dawson
> Assignee: Noble Paul
> Fix For: 5.3.2, 5.5, Trunk, 5.4.1
>
> Attachments: SOLR-7462.patch, SOLR-7462.test.json
>
>
> With Solr 5.1 I'm getting an occasional fatal exception during indexing. It's
> an ArrayIndexOutOfBoundsException at line 61 of
> org/apache/solr/util/RecordingJSONParser.java. Looking at the code (see
> below), it seems obvious that the if-statement at line 60 should use a
> greater-than sign instead of greater-than-or-equals.
> @Override
> public CharArr getStringChars() throws IOException {
> CharArr chars = super.getStringChars();
> recordStr(chars.toString());
> position = getPosition();
> // if reading a String , the getStringChars do not return the closing
> single quote or double quote
> //so, try to capture that
> if(chars.getArray().length >=chars.getStart()+chars.size()) { // line
> 60
> char next = chars.getArray()[chars.getStart() + chars.size()]; // line
> 61
> if(next =='"' || next == '\'') {
> recordChar(next);
> }
> }
> return chars;
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]