Project

General

Profile

Actions

Bug #85431

closed

Using System > Access on a page and then deleting this page leads to exceptions

Added by Wolfgang Klinger almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2018-06-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

Uncaught TYPO3 Exception

The first exception is:

Argument 1 passed to TYPO3\CMS\Backend\Template\Components\DocHeaderComponent::setMetaInformation() must be of the type array, boolean given, called in /var/www/core/typo3/sysext/beuser/Classes/Controller/PermissionController.php on line 134 

TypeError thrown in file
/var/www/core/typo3/sysext/backend/Classes/Template/Components/DocHeaderComponent.php in line 65.

if you fix this in \TYPO3\CMS\Beuser\Controller\PermissionController::initializeAction
(readPageAccess returns a boolean and not an array)

        $pageInfo = BackendUtility::readPageAccess($this->id, ' 1=1');
        if ($pageInfo !== false) {
            $this->pageInfo = $pageInfo;
        }

you get the next one:

Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in /var/www/core/typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php on line 690 

TypeError thrown in file
/var/www/core/typo3/sysext/core/Classes/Imaging/IconFactory.php in line 113.

34 TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord("pages", NULL, "small")


Files

Schermata.png (70 KB) Schermata.png Riccardo De Contardi, 2018-08-03 21:55
Actions #1

Updated by Riccardo De Contardi over 5 years ago

  • Category set to Backend User Interface

Steps to reproduce

1) create some pages, eg. as subpages of a known page, click on the page
2) go in Access module (and use it to change something, but I don't think it is important
3) use pagetree to delete the page (see the screenshot)

Results

- The list of page in the access module is not refreshed
- If you try to edit the page that has been just deleted, you got the exception

Suggest:

- remove the pagetree while in access module (but that would make the module less usable)
- or force a refresh of the module when a page is deleted.

Actions #2

Updated by Tymoteusz Motylewski over 5 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Łukasz Uznański over 5 years ago

  • Assignee set to Łukasz Uznański
Actions #4

Updated by Łukasz Uznański over 5 years ago

  • Assignee deleted (Łukasz Uznański)
Actions #5

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

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

Actions #6

Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #8

Updated by Gerrit Code Review over 5 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #9

Updated by Gerrit Code Review over 5 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #10

Updated by Gerrit Code Review over 5 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #11

Updated by Joerg Kummer over 5 years ago

Version 8.7 also affected

Actions #12

Updated by Gerrit Code Review over 5 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #13

Updated by Gerrit Code Review over 5 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #14

Updated by Gerrit Code Review over 5 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #15

Updated by Gerrit Code Review over 5 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #16

Updated by Gerrit Code Review over 5 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #17

Updated by Gerrit Code Review over 5 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #18

Updated by Gerrit Code Review over 5 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57791

Actions #19

Updated by Paweł Rogowicz over 5 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF