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
On version v2.21.0, I am experiencing an issue providing an additional reporter.
According to documentation, I declared my own report service and I try to use it by requesting /health?reporters[]=my_reporter
The controller is ok, the service is ok, so I debugged the app and find the issue:
In controller, the action runTests is doing
$reporters = $request->query->all('reporters') ?? [];
instead of
$reporters = $request->query->get('reporters') ?? [];
So all() returns the whole parameters as array and it's not recognizing the reporter alias.
My own need is to rewrite response array to use camelCase only because snake_case is prohibited on my API.
The text was updated successfully, but these errors were encountered:
I'm not quite seeing the issue but what version of Symfony are you on? I know newer versions have locked down the behaviour of query->get() and query->all().
On version v2.21.0, I am experiencing an issue providing an additional reporter.
According to documentation, I declared my own report service and I try to use it by requesting /health?reporters[]=my_reporter
The controller is ok, the service is ok, so I debugged the app and find the issue:
In controller, the action runTests is doing
$reporters = $request->query->all('reporters') ?? [];
instead of
$reporters = $request->query->get('reporters') ?? [];
So all() returns the whole parameters as array and it's not recognizing the reporter alias.
My own need is to rewrite response array to use camelCase only because snake_case is prohibited on my API.
The text was updated successfully, but these errors were encountered: