@Timed
@ApiOperation(value = "Get a list of all index ranges")
@Produces(MediaType.APPLICATION_JSON)
public IndexRangesResponse list() {
final List<IndexRange> ranges = Lists.newArrayList();
<BUG>for (IndexRange range : indexRangeService.getFrom(0)) {
</BUG>
if (!isPermitted(RestPermissions.INDEXRANGES_READ, range.indexName())) {
continue;
}

@Timed
@ApiOperation(value = "Get a list of all index ranges")
@Produces(MediaType.APPLICATION_JSON)
public IndexRangesResponse list() {
final List<IndexRange> ranges = Lists.newArrayList();
for (IndexRange range : indexRangeService.findAll()) {
if (!isPermitted(RestPermissions.INDEXRANGES_READ, range.indexName())) {
continue;
}
