TBX: 0.7.6, Concordance fail with "fromKey > toKey" error message
The error may occur when computing a concordance, it depends on the
corpus/sub-corpus used.
Complete Error message :
** Une erreur est survenue lors du chargement des lignes de la
concordance
: {0}java.lang.IllegalArgumentException: fromKey > toKey
Diagnostic 1
- Can we reproduce the bug ?
- Test: call concordance with the same corpus
- Conclusion: we have reproduced the bug when computing a concordance on a sub-corpus.
Solution
The bug was introduced in TXM 0.7.6, with a bad limit test in the AbstractCqiClient class. It was not checking correctly if the pivot position was greater than the last corpus position.
Validation test
- create a subcorpus
- call concordance and test with a query
MD : OK Windows 8 : DG7 subcorpus of Discours and Query []
(from redmine: issue id 1010, created on 2014/09/12 by Matthieu Decorde)