Issue Bug Closed

#107595Route Enhancer VariableProcessor Level Delimiter colliding with Extbase internal query arguments

Nikita Hovratov 10/03/25, 17:55 updated 04/21/26, 11:30

Description

The default LEVEL_DELIMITER for VariableProcessor is `__` (double underscore).
Some extbase form query arguments contain this delimiter. For example “__referrer”.
Unfortunately, this leads it being interpreted as a nested array.

The query parameter looks like this: tx_extension_plugin[][referrer][controller]=Controller
Instead of this: tx_extension_plugin[__referrer][
controller]=Controller

Finally, this will result in this error (which is also questionable. Probably integer keys should be casted to string):

TYPO3\CMS\Extbase\Mvc\ExtbaseRequestParameters::setArgument(): Argument #1 ($argumentName) must be of type string, int given, called in /var/www/html/vendor/typo3/cms-extbase/Classes/Mvc/Web/RequestBuilder.php on line 154

This error appears since TYPO3 v12 due to hardening of ExtbaseRequestParameters: #96292

How to reproduce

I discovered this behavior, while creating a Pagination inside an Extbase Plugin. There is a search form with filters. I want to keep current filters in the query params, when browsing the pages.

Example link generation

{page}

Routing Configuration:

routeEnhancers
  MyPlugin:
    type: Extbase
    limitToPages:
      - 6
      - 166
      - 21
      - 233
    requirements:
      page: '[0-9]{1,3}'
    extension: Extension
    plugin: Plugin
    routes:
      -
        routePath: '/'
        _controller: 'Controller::list'
      -
        routePath: '/seite/{page}'
        _controller: 'Controller::list'
        _arguments:
          page: 'currentPage'
    defaultController: 'Controller::list'
    aspects:
      page:
        type: StaticRangeMapper
        start: '2'
        end: '200'


Possible solution

The easiest fix might be to change the delimiter to something more unique.

Reviews 1

History 612

  1. Nikita Hovratov commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-08T18:45:09+00:00" > 04/08/26, 18:45 </span>

    Applied in changeset commit:f9148fc664f468cea5cbef2fec7d217961883b3b.