Open-EO / openeo-geotrellis-extensions

Java/Scala extensions for Geotrellis, for use with OpenEO GeoPySpark backend.
Apache License 2.0
5 stars 3 forks source link

strip `federation:backends` #193

Closed soxofaan closed 1 year ago

soxofaan commented 1 year ago

extend e7ed203b3fb2ed8655c6a8fc99b0b7450b3ef4a1 to also strip federation:backends property

refs: https://github.com/Open-EO/openeo-aggregator/issues/49 https://github.com/openEOPlatform/architecture-docs/issues/361

soxofaan commented 1 year ago

related error in logs:

OpenEO batch job failed: org.openeo.geotrellissentinelhub.SentinelHubException: Sentinel Hub returned an error
response: HTTP/1.1 400 Bad Request with body: {"code":400,"description":"Querying is not supported on property 'federation:backends'. Possible properties are 'eo:cloud_cover'."}
request: POST https://services.sentinel-hub.com/api/v1/catalog/1.0.0/search with (possibly abbreviated) body: 
{
  "datetime": "2020-06-01T00:00:00Z/2020-07-01T23:59:59.999999999Z",
  "collections": ["sentinel-2-l1c"],
  "filter": "federation:backends = 'vito'",
  "intersects": {"type":"Polygon","coordinates":[[[7.526903573796581,51.875593358187785],[7.526903573796581,52.04874663230104],[7.736590949155983,52.04874663230104],[7.736590949155983,51.875593358187785],[7.526903573796581,51.875593358187785]]]},
  "limit": 100,
  "next": null
}
bossie commented 1 year ago

Deployed on prod and reported as fixed by @m-mohr.