Issue Bug Closed

#73103Off-by-one error in FAL

Andreas Kienast 02/03/16, 15:11 updated 10/02/18, 11:20

Description

The filelist has an off-by-one issue while using the page browser.

How to reproduce

Create a new folder in fileadmin and create 100 empty test files: for i in {0..100}; do touch $i.txt; done;
The list goes from 0.txt to 39.txt. After switching to the next page, the result list goes from 39.txt to 78.txt, missing 79.txt. Switching to the next page again renders the list from 79.txt to 99.txt and so on.

I think the issue is related to the LocalDriver, which changes the starting point by one:

// ./typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php +371
if ($start > 0) {
    $start--;
}

Reviews 3