geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
178 stars 117 forks source link

fix metalink size for url #581

Closed cehbrecht closed 3 years ago

cehbrecht commented 3 years ago

Overview

This PR adds a "size" checker in URLHandler.

When the metalink document is created it is checking the "file" size of a metafile item. When the metafile is representing an external URL it is using the URLHandler.

Issue: when we were calculating the size of an "URL" it was first downloading the URL and the calculating the file size. We did not recognize ... files were small before ;) This is probably the root cause for issue #571.

Now, the URLHandler and the FileHandler have their own methods to calculate "size". Avoiding unwanted downloads.

Related Issue / Discussion

571 #580

Additional Information

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 0.0% when pulling 4d24fb92d999391232ef25aa5568d252f33462a7 on cehbrecht:fix-metalink-size-for-url into bbca1e42b63cf9c31c40fa3e2a731a1528adb2b9 on geopython:pywps-4.4.