Bug #90229

Cast integer to string items during route argument mapping

Added by Oliver Hader over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-01-28
Due date:
% Done:

100%

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

Description

  TestingPlugin:
    type: Plugin
    namespace: tx_my
    routePath: '/filter/{a}/{b}/{c}'
    _arguments:
      a: 0
      b: 1
      c: 2

(to work e.g. with tx_my[]=a&tx_my[]=b...)

fails with error message like

TypeError : Argument 1 passed to TYPO3\CMS\Core\Routing\Enhancer\VariableProcessor::addNestedValue()
must be of the type string, integer given, called in typo3/sysext/core/Classes/Routing/Enhancer/VariableProcessor.php on line 286

Related issues

Related to TYPO3 Core - Bug #87120: More flexible way to exclude arguments from cHash calculationClosed2018-12-11

Actions
#1

Updated by Oliver Hader over 1 year ago

  • Description updated (diff)
#2

Updated by Oliver Hader over 1 year ago

  • Description updated (diff)
#3

Updated by Gerrit Code Review over 1 year 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/+/63056

#4

Updated by Gerrit Code Review over 1 year 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/+/63056

#5

Updated by Gerrit Code Review over 1 year 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/+/63057

#6

Updated by Oliver Hader over 1 year ago

  • Related to Bug #87120: More flexible way to exclude arguments from cHash calculation added
#7

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

#8

Updated by Gerrit Code Review over 1 year 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/+/63057

#9

Updated by Oliver Hader over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF