Bug #86592

Argument 2 passed to TYPO3\CMS\Extbase\Routing\ExtbasePluginEnhancer::applyControllerActionValues() must be of the type array, null given

Added by Daniel Siepmann 2 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-10-08
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given the following routing configuration:

routeEnhancers:
  ExamplePlugin:
    type: Extbase
    extension: ExampleExtension
    plugin: Address
    defaultController: 'Address::index'
    routes:
      -
        routePath: '/edit/{address}'
        _controller: 'Address::edit'
        _arguments:
          'address': 'address'
      -
        routePath: '/update'
        _controller: 'Address::update'
    aspects:
      address:
        type: PersistedPatternMapper
        tableName: 'tx_exampleextension_domain_model_address'
        routeFieldPattern: '^(?P<company_name>.+)-(?P<uid>\d+)$'
        routeFieldResult: '{company_name}-{uid}'

and submitting the edit form, results in the url https://workshop-extension.at.localhost/plugin/update and the error:

Argument 2 passed to TYPO3\CMS\Extbase\Routing\ExtbasePluginEnhancer::applyControllerActionValues() must be of the type array, null given

Associated revisions

Revision debf38e8 (diff)
Added by Daniel Siepmann 2 months ago

[BUGFIX] Always provide an array to applyControllerActionValues

As applyControllerActionValues requires an array as 2nd argument by
reference, we make sure to provide an array as 2nd argument.

Resolves: #86592
Releases: master
Change-Id: If2d56da60302b8a2dea89f0b31c02eba41024d3d
Reviewed-on: https://review.typo3.org/58595
Tested-by: TYPO3com <>
Reviewed-by: Tymoteusz Motylewski <>
Reviewed-by: Susanne Moog <>
Tested-by: Susanne Moog <>
Reviewed-by: Stefan Neufeind <>
Tested-by: Stefan Neufeind <>

History

#1 Updated by Gerrit Code Review 2 months 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/58595

#2 Updated by Gerrit Code Review 2 months 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/58595

#3 Updated by Gerrit Code Review 2 months 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/58595

#4 Updated by Gerrit Code Review 2 months 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/58595

#5 Updated by Daniel Siepmann 2 months ago

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

Also available in: Atom PDF