Bug #90229

Cast integer to string items during route argument mapping

Added by Oliver Hader 9 months ago. Updated 8 months ago.

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

100%

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 calculation Closed 2018-12-11

Associated revisions

Revision 4fa752ee (diff)
Added by Oliver Hader 9 months ago

[BUGFIX] Cast integer to string items during route argument mapping

Resolves: #90229
Releases: master, 9.5
Change-Id: Iec8baa5dbe23d78dd4bfae460b501c2da5cb6bd4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63056
Tested-by: TYPO3com <>
Tested-by: Benni Mack <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Benni Mack <>
Reviewed-by: Guido Schmechel <>
Reviewed-by: Andreas Fernandez <>

Revision beef709f (diff)
Added by Oliver Hader 9 months ago

[BUGFIX] Cast integer to string items during route argument mapping

Resolves: #90229
Releases: master, 9.5
Change-Id: Iec8baa5dbe23d78dd4bfae460b501c2da5cb6bd4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63057
Tested-by: TYPO3com <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Andreas Fernandez <>

History

#1 Updated by Oliver Hader 9 months ago

  • Description updated (diff)

#2 Updated by Oliver Hader 9 months ago

  • Description updated (diff)

#3 Updated by Gerrit Code Review 9 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/c/Packages/TYPO3.CMS/+/63056

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

#5 Updated by Gerrit Code Review 9 months 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 9 months ago

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

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

#8 Updated by Gerrit Code Review 9 months 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 9 months ago

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

#10 Updated by Benni Mack 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF