- 🇫🇮Finland j-vee Turku, Finland
Tests are failing but the functionality itself is fixed using this patch. Thanks!
- 🇪🇸Spain JoseFran
This solution not apply in drupal 10 and JSON:API Extras 3.23v. temporarily you can use next patch until resolved.
- Assigned to rajeshreeputra
- 🇮🇳India rajeshreeputra Pune
The issue here is with the sort usage in test(at line 135):
$response = $this->drupalGet('/api/articles', [ 'query' => [ 'sort' => [ 'title' => [ 'path' => 'title', 'direction' => 'ASC', ], ], ], ]);
which throws below error:
array:2 [ "jsonapi" => array:2 [ "version" => "1.0" "meta" => array:1 [ "links" => array:1 [ "self" => array:1 [ "href" => "http://jsonapi.org/format/1.0/" ] ] ] ] "errors" => array:1 [ 0 => array:4 [ "title" => "Bad Request" "status" => "400" "detail" => "Input value "sort" contains a non-scalar value." "links" => array:2 [ "via" => array:1 [ "href" => "http://127.0.0.1:8080/api/articles?sort%5Btitle%5D%5Bpath%5D=title&sort%5Btitle%5D%5Bdirection%5D=ASC" ] "info" => array:1 [ "href" => "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1" ] ] ] ] ]
looking into it.
- last update
over 1 year ago 8 pass, 4 fail - last update
over 1 year ago 11 pass, 2 fail - last update
over 1 year ago 8 pass, 4 fail - last update
over 1 year ago 8 pass, 4 fail - last update
over 1 year ago 11 pass, 2 fail - last update
over 1 year ago 8 pass, 4 fail - last update
over 1 year ago 17 pass - last update
over 1 year ago 17 pass - Status changed to Needs review
over 1 year ago 7:45am 18 May 2023 - last update
over 1 year ago Composer require-dev failure - Issue was unassigned.
- Status changed to RTBC
over 1 year ago 10:22am 7 June 2023 - 🇯🇴Jordan Rajab Natshah Jordan
Tested with Drupal 10.1.x
The fix is working. Thank you :)Should JSON:API Extras start a new branch?
Will all Drupal 9 and 10 will be working with Symfony 6.0 Possible duplicate: 🐛 InvalidArgumentException: Expected a scalar value as a 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()", "array" given. Fixed
This issue is older but that one also fixes sorting which gives the same error.- last update
about 1 year ago 17 pass - Status changed to Fixed
about 1 year ago 12:56pm 31 August 2023 - 🇳🇱Netherlands bbrala Netherlands
THanks for confirming, but has been fixed in the related issue. Will mark this fixed though, thank all!
Automatically closed - issue fixed for 2 weeks with no activity.