Skip to content

Commit

Permalink
Merge pull request #17850 from bernt-matthias/topic/api-upload-permis…
Browse files Browse the repository at this point in the history
…sions

Fix permissions for temporary upload file for API uploads
  • Loading branch information
mvdbeek authored May 14, 2024
2 parents 9ae9c94 + 35cfbef commit e9db363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/webapps/galaxy/services/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def create_fetch(
dir=trans.app.config.new_file_path, prefix="upload_file_data_", delete=False
) as dest:
shutil.copyfileobj(upload_file.file, dest) # type: ignore[misc] # https://github.com/python/mypy/issues/15031
util.umask_fix_perms(dest.name, trans.app.config.umask, 0o0666)
upload_file.file.close()
files_payload[f"files_{i}|file_data"] = FilesPayload(
filename=upload_file.filename, local_filename=dest.name
Expand Down

0 comments on commit e9db363

Please sign in to comment.