Skip to content

potential corrupt zip file is not stored in final storage location #264

@robkooper

Description

@robkooper

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:

  1. Upload a corrupt zip file
  2. Note file is stuck in created, no exception is logged

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions