Actions
Bug #73103
closedOff-by-one error in FAL
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2016-02-03
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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--; }
Actions