radiantearth / stac-browser

A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs
https://radiantearth.github.io/stac-browser
ISC License
271 stars 136 forks source link

Incorrect encoding of query strings #409

Open m-mohr opened 5 months ago

m-mohr commented 5 months ago

Reported by @ycespb

There may be an issue in the STACBrowser with thumbnail URL encoding.

The STACBrowser seems to “encode” the URL (provided by DLR) causing a broken link in STACBrowser. Pasting the original URL (present in the STAC GeoJSON representation) in the Web browser allows to see the thumbnail…

https://radiantearth.github.io/stac-browser/#/external/geo.spacebel.be/collections/3fe263d2-99ed-4751-b937-d26a31ab0606/items/urn:eop:DLR:EOWEB:NOAA.AVHRR.NDVI:@dims_op_pl_dfd_XXXXB00000000283080155732@dims_op_pl_dfd_@@NOAA.AVHRR.NDVI?httpAccept=application%2Fgeo%2Bjson%3Bprofile%3Dhttps%3A%2F%2Fstacspec.org&.language=en&.asset=asset-thumbnail

This encoding is also present in the official CEOS FedEO endpoint.

m-mohr commented 5 months ago

The URL encoding comes from urijs and can't be disabled without major effort. The other thing that confuses me is that Firefox shows an equal sign at the end for the requested image...