Project

General

Profile

Actions

Bug #91294

open

Multiple StaticValueMappers interference

Added by Anonymous over 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-05-04
Due date:
% Done:

0%

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

Description

The following configuration generates the following url for example.

tx_awesomeextension_bestplugin[filter][foo] = 1
tx_awesomeextension_bestplugin[filter][bar] = 0

http://great.ddev.site/foo0

routeEnhancers:
    Sample:
        type: Extbase
        extension: AwesomeExtension
        plugin: BestPlugin
        routes:
            -   routePath: '/{foo}{bar}'
                _arguments:
                    foo: 'filter/foo'
                    bar: 'filter/bar'
                _controller: 'Foo::bar'
        defaultController: 'Foo::bar'
        aspects:
            foo:
                type: StaticValueMapper
                map:
                    foo: 1

Go one step further and lets add another StaticValueMapper:

routeEnhancers:
    Sample:
        type: Extbase
        extension: AwesomeExtension
        plugin: BestPlugin
        routes:
            -   routePath: '/{foo}{bar}'
                _arguments:
                    foo: 'filter/foo'
                    bar: 'filter/bar'
                _controller: 'Foo::bar'
        defaultController: 'Foo::bar'
        aspects:
            foo:
                type: StaticValueMapper
                map:
                    foo: 1
            bar:
                type: StaticValueMapper
                map:
                    bar: 1

We would expect to see: http://great.ddev.site/foo?tx_awesomeextension_bestplugin[filter][bar]=0

What actually happens: http://great.ddev.site/10

(skipped cHash for examples)

Actions

Also available in: Atom PDF