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 #1

Updated by Anonymous over 4 years ago

  • Subject changed from Multiple StaticValueMappers interfere to Multiple StaticValueMappers interference
Actions #2

Updated by Anonymous over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Anonymous over 4 years ago

  • Description updated (diff)
Actions #4

Updated by Anonymous over 4 years ago

  • Description updated (diff)
Actions #5

Updated by Anonymous over 4 years ago

  • Description updated (diff)
Actions #6

Updated by Simon Schaufelberger over 2 years ago

  • Category set to Site Handling, Site Sets & Routing
Actions

Also available in: Atom PDF