nansencenter / django-geo-spaas-processing

Processing tools for GeoSPaaS
GNU General Public License v3.0
1 stars 1 forks source link

The default value of filename should be returned by the server either from header, or from url instead of an empty one #15

Closed opsdep closed 3 years ago

opsdep commented 3 years ago

Downloaded dataset should be named based on its entry_id for all cases.

For copernicus harvested file the header of the response of the download link provide the associated part named 'filename='for find the name of the dataset based on it. But for the osisaf and other future download links, the header of the response whould be something like: image

So no information can be gained about the filename from such a header. Thus, this line https://github.com/nansencenter/django-geo-spaas-processing/blob/7793104419a786111342e121fbaae111acb72d64/geospaas_processing/downloaders.py#L65 should be corrected for solving this issue.

akorosov commented 3 years ago

Rather the filename should be returned by the server either from header, or from url.