Project

General

Profile

Actions

Bug #100807

open

Analyze Database Structure fails with EnforceableQueryRestriction and constructor dependencies

Added by Nicole Cordes over 1 year ago. Updated 14 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2023-05-04
Due date:
% Done:

0%

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

Description

Given:

- an own class implementing the QueryRestrictionInterface and EnforceableQueryRestrictionInterface using a constructor dependency to another class
- this class is marked as public in settings.yaml
- this class is registered in $GLOBALS['TYPO3_CONF_VARS']['DB']['additionalQueryRestrictions']

Expectation:

- calling "Analyze Database Structure" in maintenance module should compare the current database structure with expected on

Actual:

- an error occurs as the (constructor) dependency cannot be resolved
- the failsafe container instead of the symfony dependency container is used

Actions #1

Updated by Garvin Hicking 4 months ago

  • Category set to System/Bootstrap/Configuration

Probably the fail-safe container can't be circumvented easily, because all the maintenance section runs with it.
Adjusting category of this issue.

Actions #2

Updated by Stefan Bürk 14 days ago · Edited

Would be nice to know which query / code executes a query using the restricting in that context. I'd say, all queries within db analyzer should omit any restrictin completly in that context.

Actions

Also available in: Atom PDF