Describe the bug
If a zip file is uploaded the code will check the zipfile to see if it is a specific type of zipfile (PTM etc), see https://github.com/clowder-framework/clowder/blob/develop/app/fileutils/FilesUtils.java#L19. This code can throw an uncaught exception (java.lang.IllegalArgumentException: MALFORMED). This will result in the file not being written to the final space.
THIS IS A CRITICAL ISSUE
To Reproduce
Steps to reproduce the behavior:
- Upload a corrupt zip file
- Note file is stuck in created, no exception is logged
Describe the bug
If a zip file is uploaded the code will check the zipfile to see if it is a specific type of zipfile (PTM etc), see https://github.com/clowder-framework/clowder/blob/develop/app/fileutils/FilesUtils.java#L19. This code can throw an uncaught exception (java.lang.IllegalArgumentException: MALFORMED). This will result in the file not being written to the final space.
THIS IS A CRITICAL ISSUE
To Reproduce
Steps to reproduce the behavior: