#91294Multiple StaticValueMappers interference
Description
The following configuration generates the following url for example.
tx_awesomeextension_bestplugin[filter][foo] = 1
tx_awesomeextension_bestplugin[filter][bar] = 0
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 8
-
Anonymous changed subject
Multiple StaticValueMappers interfereMultiple StaticValueMappers interference <span data-processor="relativetime" data-value="2020-05-04T16:09:31+00:00" > 05/04/20, 16:09 </span> -
Anonymous changed description <span data-processor="relativetime" data-value="2020-05-04T19:22:00+00:00" > 05/04/20, 19:22 </span>
-
Anonymous changed description <span data-processor="relativetime" data-value="2020-05-04T19:22:54+00:00" > 05/04/20, 19:22 </span>
-
Anonymous changed description <span data-processor="relativetime" data-value="2020-05-04T19:28:01+00:00" > 05/04/20, 19:28 </span>
-
Anonymous changed description <span data-processor="relativetime" data-value="2020-05-04T19:37:57+00:00" > 05/04/20, 19:37 </span>
-
Simon Schaufelberger changed category <span data-processor="relativetime" data-value="2022-04-27T00:41:05+00:00" > 04/27/22, 00:41 </span>
-
Georg Ringer changed Related to #91298 <span data-processor="relativetime" data-value="2026-09-10T21:07:09+00:00" > 09/10/26, 21:07 </span>
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-09-29T20:56:25+00:00" > 09/29/26, 20:56 </span>
The URL does not contain unmapped raw values anymore. If a value cannot be mapped by an aspect, the route does not apply and all arguments are added as query parameters.
Generating a route with a missing required placeholder is not supported, so the expected /foo?…[bar]=0 is not possible with this configuration.
Closing, please reopen if it still happens.