You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to v3.2 and switching event_listeners_backward_compatibility_layer to false, the use of decorated DeserializeListener to support application/x-www-form-urlencoded we relied on stopped working.
We followed the current actual guide on https://api-platform.com/docs/core/form-data/ to know if there is a fix, but it seems the guide has not been updated for 3.2.
How to reproduce
Use the following config: config/packages/api_platform.yaml
The expected response: no error.
With event_listeners_backward_compatibility_layer: true it works as expected.
Possible Solution
Have a way to ignore content negotiation mismatch error or a new way to support application/x-www-form-urlencoded with event_listeners_backward_compatibility_layer: false.
Additional Context
Notably the decorated DeserializeListener gets called with event_listeners_backward_compatibility_layer: false (didn't expect that).
Not sure if it is a bug, documentation issue, or both.
The text was updated successfully, but these errors were encountered:
use event_listeners_backward_compatibility_layer: true please not that the name is quite misleading event listeners will always be supported. You can decorate our processors in 3.2 if you don't want to use listeners or just keep it like that.
@soyuka, Oh, did not know that. But still, can we fix the documentation at https://api-platform.com/docs/core/form-data/ to note that it is only working with event_listeners_backward_compatibility_layer: true, which will be false by default in 4.0?
API Platform version(s) affected: 3.2.7
Description
After upgrading to v3.2 and switching
event_listeners_backward_compatibility_layer
tofalse
, the use of decoratedDeserializeListener
to supportapplication/x-www-form-urlencoded
we relied on stopped working.We followed the current actual guide on https://api-platform.com/docs/core/form-data/ to know if there is a fix, but it seems the guide has not been updated for 3.2.
How to reproduce
config/packages/api_platform.yaml
\App\Infrastructure\EventListener\ApiPlatform\DeserializeListener
The expected response: no error.
With
event_listeners_backward_compatibility_layer: true
it works as expected.Possible Solution
Have a way to ignore content negotiation mismatch error or a new way to support
application/x-www-form-urlencoded
withevent_listeners_backward_compatibility_layer: false
.Additional Context
Notably the decorated
DeserializeListener
gets called withevent_listeners_backward_compatibility_layer: false
(didn't expect that).Not sure if it is a bug, documentation issue, or both.
The text was updated successfully, but these errors were encountered: