You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The legacy (non-BlueGenes) webapp produces an IndexOutOfBoundsException error when the number of regions searched for is exactly one less than the number of items displayed per page.
Click Search - note that the results table does not appear
Change page size from 10 to 25 - note that the results table now appears
Change page size back to 10 - should now get an internal error
You can get the same error by repeating the above steps with 24 regions and changing the page size to 25, etc.
The error in the log is:
ERROR org.intermine.web.struts.InterMineExceptionHandler [] - java.lang.IndexOutOfBoundsException: toIndex = 10
at java.util.ArrayList.subListRangeCheck(ArrayList.java:1014)
at java.util.ArrayList.subList(ArrayList.java:1006)
at org.intermine.bio.web.logic.GenomicRegionSearchService.convertResultMapToHTML(GenomicRegionSearchService.java:1385)
at org.intermine.bio.web.struts.GenomicRegionSearchAjaxAction.getData(GenomicRegionSearchAjaxAction.java:234)
The legacy (non-BlueGenes) webapp produces an IndexOutOfBoundsException error when the number of regions searched for is exactly one less than the number of items displayed per page.
Steps to reproduce:
You can get the same error by repeating the above steps with 24 regions and changing the page size to 25, etc.
The error in the log is:
I believe the issue is with the strict inequality in genomic_region_search_results_default.js, here: https://github.com/intermine/intermine/blob/dev/bio/webapp/src/main/webapp/model/genomic_region_search/genomic_region_search_results_default.js#L152
Changing ">" to ">=" in line 152 seems to fix this.
The text was updated successfully, but these errors were encountered: