[jira] [Updated] (SOLR-7462) ArrayIndexOutOfBoundsException in RecordingJSONParser.java

2016-01-12 Thread Adrien Grand (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated SOLR-7462:
---
Fix Version/s: 5.4.1

> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-7462) ArrayIndexOutOfBoundsException in RecordingJSONParser.java

2015-12-29 Thread Noble Paul (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noble Paul updated SOLR-7462:
-
Fix Version/s: 5.3.2

> 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
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-7462) ArrayIndexOutOfBoundsException in RecordingJSONParser.java

2015-05-01 Thread Scott Dawson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Dawson updated SOLR-7462:
---
Attachment: SOLR-7462.test.json

 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
 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-7462) ArrayIndexOutOfBoundsException in RecordingJSONParser.java

2015-04-27 Thread Scott Dawson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Dawson updated SOLR-7462:
---
Attachment: SOLR-7462.patch

 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
 Attachments: SOLR-7462.patch


 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org