- First commit to issue fork.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
I fixed the access to the not initialized
$configFactory
in 📌 Do not use ControllerBase as parent class for RestExampleClientController Fixed . - 🇺🇸United States jvogt Seattle, WA
Apparently this has to do with Drupal dropping support for the Accept header → , which this module still uses. Instead, we must set the _format query string argument.
Example: https://example.com/rest/node?_format=json
I've attached a patch that addresses the issue for GET calls in RestExampleClientCalls.php. Note that it doesn't make changes to other HTTP method calls (POST, DELETE, etc). It also doesn't make the controller render correctly for '/examples/rest-client-actions'. That has a bunch of other issues, but at least you'll no longer get the 406 error.
- Merge request !88Issue #3186036: Visiting examples/rest-client-actions throws a... → (Merged) created by apaderno
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Tests are failing because 📌 Add the missing @group annotation to test classes Active . The other GitLab CI jobs are not failing, so the provided patch is good to go.
-
avpaderno →
committed c9e13486 on 4.0.x
Issue #3186036: Visiting examples/rest-client-actions throws a...
-
avpaderno →
committed c9e13486 on 4.0.x
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Thank you for the patch! The merge request has been merged.
Automatically closed - issue fixed for 2 weeks with no activity.