Skip to content

Commit

Permalink
Discard collections params in GET /collections/{collectionId}/items i…
Browse files Browse the repository at this point in the history
…nstead of returning HTTP 400
  • Loading branch information
jjrom committed Apr 29, 2024
1 parent 804cf29 commit ba8a3de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/resto/core/api/FeaturesAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,11 @@ public function getFeature($params)
*/
public function getFeaturesInCollection($params)
{

// This should return HTTP 400 but we discard it instead otherwise it brokes pystac requests
if (isset($params['collections'])) {
return RestoLogUtil::httpError(400, 'You cannot specify a list of collections on a single collection search');
unset($params['collections'])
//return RestoLogUtil::httpError(400, 'You cannot specify a list of collections on a single collection search');
}

if (isset($params['ck'])) {
Expand Down

0 comments on commit ba8a3de

Please sign in to comment.