Project

General

Profile

Actions

Bug #105159

open

Workspace Preview: LIMIT Applied Too Early in Extbase Queries

Added by Enes Akgün about 2 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2024-09-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

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

Actions #2

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

Actions #3

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

Actions

Also available in: Atom PDF