Skip to content

Commit

Permalink
Also delete uploaded file data after processing.
Browse files Browse the repository at this point in the history
API uploads, e.g. with planemo, would leave upload_file_data_XXXXXX lying around in the configured temporary directory. Forever.
  • Loading branch information
davebx committed Aug 18, 2015
1 parent fe251e3 commit ed4bb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/webapps/tool_shed/api/repositories.py
Expand Up @@ -915,7 +915,8 @@ def create_changeset_revision( self, trans, id, payload, **kwd ):
message = error_message
else:
trans.response.status = 500

if os.path.exists( uploaded_file_name ):
os.remove( uploaded_file_name )
if not ok:
return {
"err_msg": message,
Expand Down

0 comments on commit ed4bb86

Please sign in to comment.