Univention Bugzilla – Bug 34501
increase ucc-image-download error robustness
Last modified: 2014-06-12 09:19:36 CEST
when accidentally downloading an invalid spec file (e.g. a non-yaml file) ucc-image-download will fail. The error should be catched, the tempdirectory should be cleaned up, and the script should fail gracefully. yaml.reader.ReaderError: 'utf8' codec can't decode byte #x80: invalid start byte
Will be adjusted along with Bug 30379
This is now correctly handled: ucc-image-download: error: -s option requires an argument root@master:~# ucc-image-download -s invalid.spec Downloading and reading img file invalid.spec ERROR: Image data for spec file invalid.spec could not be downloaded from server: Malformed spec file invalid.spec, missing entry "hash-img"!
This should be ok by now, ucc-image-download has been rewritten, e.g.: > root@master50:~# ucc-image-download -s invalid.spec > Downloading and reading img file invalid.spec > ERROR: Image data for spec file invalid.spec could not be downloaded from server: > Could not download file (404 - Not Found): http://10.200.3.90/invalid.spec If the download procedure happens to fail at any point, temporarily downloaded information will be removed again.
UCC 2.0 has been released: http://docs.univention.de/release-notes-ucc-2.0.html If this error occurs again, please use "Clone This Bug".