Skip to content

Commit

Permalink
Merge pull request #402 from jjrom/develop
Browse files Browse the repository at this point in the history
Discard collections params in GET /collections/{collectionId}/items instead of returning HTTP 400
  • Loading branch information
jjrom authored Apr 29, 2024
2 parents 17e1abc + eff1d52 commit a4d073f
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 a4d073f

Please sign in to comment.