Project

General

Profile

Actions

Bug #104591

closed

Argument #1 ($id) must be of type int in DatabaseIntegrityController.php

Added by Thomas Hohn 3 months ago. Updated 13 days ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2024-08-12
Due date:
% Done:

100%

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

Description

With the introduction of types on the method getTreeList (TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController)
there is a missing cast for mountpoints - since the method call $backendUserAuthentication->returnWebmounts()
returns a string list of mountpoints causing the calls

$this->getTreeList($webMount, 999, 0, $perms_clause);

to throw an type error as stated below:

vendor/typo3/cms-lowlevel/Classes/Controller/DatabaseIntegrityController.php, line 640: TYPO3\\CMS\\Lowlevel\\Controller\\DatabaseIntegrityController::getTreeList(): Argument #1 ($id) must be of type int, string given, called in /mnt/opt/share/TYPO3_systime_internetbook_bundle-development-9bb28736fcdefa7bb5a5977295069781c4f3fdaf/vendor/typo3/cms-lowlevel/Classes/Controller/DatabaseIntegrityController.php on line 1894 -

The fix is straight forward to cast webMount in the calls


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #104607: Deprecate BackendUserAuthentication:returnWebmounts()Closed2024-08-13

Actions
Related to TYPO3 Core - Task #104614: BackendUserAuthentication::getWebmounts() should return an unique listClosedThomas Hohn2024-08-13

Actions
Actions #1

Updated by Gerrit Code Review 3 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/+/85586

Actions #2

Updated by Gerrit Code Review 3 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/+/85586

Actions #3

Updated by Gerrit Code Review 3 months 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/+/85586

Actions #4

Updated by Gerrit Code Review 3 months ago

Patch set 4 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/+/85586

Actions #5

Updated by Gerrit Code Review 3 months ago

Patch set 5 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/+/85586

Actions #6

Updated by Gerrit Code Review 3 months ago

Patch set 6 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/+/85586

Actions #7

Updated by Gerrit Code Review 3 months ago

Patch set 7 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/+/85586

Actions #8

Updated by Gerrit Code Review 3 months ago

Patch set 8 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/+/85586

Actions #9

Updated by Gerrit Code Review 3 months ago

Patch set 9 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/+/85586

Actions #10

Updated by Gerrit Code Review 3 months ago

Patch set 10 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/+/85586

Actions #11

Updated by Christian Kuhn 3 months ago

  • Related to Task #104607: Deprecate BackendUserAuthentication:returnWebmounts() added
Actions #12

Updated by Gerrit Code Review 3 months ago

Patch set 11 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/+/85586

Actions #13

Updated by Gerrit Code Review 3 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85614

Actions #14

Updated by Anonymous 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Thomas Hohn 3 months ago

  • Related to Task #104614: BackendUserAuthentication::getWebmounts() should return an unique list added
Actions #16

Updated by Benni Mack 13 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF