Project

General

Profile

Actions

Bug #88185

closed

Misleading exception message for BE modules if action not allowed

Added by Sybille Peters over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2019-04-23
Due date:
% Done:

100%

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

Description

The exception message is wrong for modules. Modules are registered in ext_tables.php and not in ext_localconf.php. And it should say "module" and not "plugin".

If the function doesn't know if the action is for a module or plugin, it might be best to mention both.

Reproduce

  1. Create a BE module with Extbase.
  2. Create a new action without allowing it in 2registerModule()
  3. Call the action

Actual result

Exception message: Example

#1313855175 TYPO3\CMS\Extbase\Mvc\Exception\InvalidActionNameException
The action "check" (controller "Something") is not allowed by this plugin. Please check TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.

Expected result

... is not allowed by this plugin / module. Please check configurePlugin in your ext_localconf.php / registerModule in your ext_tables.php.

System details

TYPO3 9.5.5

Actions #1

Updated by Gerrit Code Review over 4 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/c/Packages/TYPO3.CMS/+/64046

Actions #2

Updated by Gerrit Code Review over 4 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/c/Packages/TYPO3.CMS/+/64046

Actions #3

Updated by Gerrit Code Review over 4 years ago

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

Actions #4

Updated by Gerrit Code Review over 4 years ago

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

Actions #5

Updated by Benni Mack over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF