ucphhpc / migrid-sync

MiGrid workspace where master branch is kept strictly in sync with SF upstream svn repo. Any development or experiments should use a branch. You probably want to fork your own clone or work e.g. on the edge branch if you wish to contribute.
GNU General Public License v2.0
3 stars 4 forks source link

Freeze Archives - file link error #10

Closed ARiis-63 closed 1 year ago

ARiis-63 commented 1 year ago

Links from freeze archives not ok in web browser, unless published. Nor does freeze archives file downloads work from browser. The downloaded file is corrupted and ~10KB size regardless it's original size.

The link in browser shows as using showfreezefiles.py ie: "https://int.erda.au.dk/wsgi-bin/showfreezefile.py?freeze_id=archive-XXXXX&path=Freeze-test/Sub1/DJI_0267.JPG"

jonasbardino commented 1 year ago

This is likely a python3 text encoding issue when serving the archive file like the one for cat.py we previously discussed on another channel. I'll look into both ASAP.

jonasbardino commented 1 year ago

It was indeed the same problem and both are fixed in experimental revision da49d49f3f59d77b6bcf4cd9b5f423125c9acb08 by handling binary output as such in py3.