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 changed description 10/03/25, 17:58

  2. Nikita Hovratov changed description 10/03/25, 18:10

  3. Nikita Hovratov changed Related to #96292 10/08/25, 10:19

  4. Nikita Hovratov changed description 10/08/25, 10:21

  5. Gerrit Code Review pushed patch set 1 for main to change 91192 status New Under Review 10/22/25, 08:12

  6. Gerrit Code Review pushed patch set 2 for main to change 91192 12/09/25, 17:57

  7. Gerrit Code Review pushed patch set 3 for main to change 91192 12/12/25, 22:36

  8. Gerrit Code Review pushed patch set 4 for main to change 91192 12/12/25, 22:59

  9. Gerrit Code Review pushed patch set 5 for main to change 91192 04/08/26, 17:23

  10. Gerrit Code Review pushed patch set 6 for main to change 91192 04/08/26, 17:24

  11. Nikita Hovratov commented and changed status Under Review Resolved done 0 % 100 % 04/08/26, 18:45

    Applied in changeset commit:f9148fc664f468cea5cbef2fec7d217961883b3b.

  12. Benni Mack changed status Resolved Closed 04/21/26, 11:30