Bug #105159
openWorkspace Preview: LIMIT Applied Too Early in Extbase Queries
0%
Description
In workspaces preview, during the initialization of the result set of Extbase queries, the SQL LIMIT
clause is applied too early. This results in an incomplete or incorrect preview of records. The LIMIT
should be applied only after the overlaying process has taken place to ensure that all relevant records are correctly considered in the Workspace preview.
Steps to Reproduce:
1. Create a new workspace and add some records, both enabled and disabled.
2. In an Extbase repository, create a query and set a limit to fetch the records, for example
$this->createQuery()->setLimit(2);
3. Execute the query in the workspace context and initialize the result set to trigger the overlay process
4. Observe that not all expected records are retrieved, as the
LIMIT
has been applied before the records are properly overlaid.
Expected Behavior:
The LIMIT
should be applied after the result set has been overlaid for the Workspace preview, ensuring all records are correctly processed before limiting the result.
Updated by Gerrit Code Review about 2 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86370
Updated by Gerrit Code Review about 2 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86370
Updated by Gerrit Code Review about 1 month ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86370