marxanweb / general

Issues tracker, installers, registry, test data and example developer apps for Marxan Web
European Union Public License 1.2
2 stars 2 forks source link

At the end of a project import the ZIP file is deleted - this can be a problem in a training course #281

Closed andrewcottam closed 3 years ago

andrewcottam commented 4 years ago

For example the tutorial file 'Micronesia Marxan Tutorialv2_26Oct20.mxw' was used by all 44 students in the Training Workshop on 28/10/2020. Stepping through the import project wizard, the first step is to upload the file then the next it will import it. But if someone else has just finished the import, the ZIP file will be deleted. This will cause the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/marxan-server/imports/Micronesia Marxan Tutorialv2_26Oct20.mxw'

And it will also create an empty project folder which will cause issues with loading projects for admin users.