[BUGFIX] FAL: Correctly iterate folder content with offset 87/52287/2
authorMarkus Klein <markus.klein@typo3.org>
Thu, 30 Mar 2017 22:06:58 +0000 (00:06 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 31 Mar 2017 11:06:21 +0000 (13:06 +0200)
commitada2c5e03ba5ae72de11af4733f84af71aa3300b
treea7ce713bedeb36d5c9daf279cd33fc15d1aabac3
parent4a7c5a9f34f76679cc8912c6d61ffe9371cc0759
[BUGFIX] FAL: Correctly iterate folder content with offset

Whenever a list of files of a folder is queried with an offset
make sure we handle filtered files correctly by not taking them
into account when searching for the first eligible file for the
result.

A direct seek() to the start position is wrong as those first files
may contain files would be later on filtered.
The solution is to iterate the whole file list and only count
non-filtered elements to reach the correct starting point.

Releases: master, 7.6, 6.2
Resolves: #80589
Change-Id: I79a6d298599d31aa49c36fd51cc5bbe2cf2ccf3a
Reviewed-on: https://review.typo3.org/52287
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php