Skip to content

Commit

Permalink
Raise appropriate exception if require path parameter is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 7, 2024
1 parent 1a04294 commit 33556c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/webapps/galaxy/api/job_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def create(self, trans, job_id, payload, **kwargs):
"""
job = self.__authorize_job_access(trans, job_id, **payload)
path = payload.get("path")
if not path:
raise exceptions.RequestParameterInvalidException("'path' parameter not provided or empty.")
self.__check_job_can_write_to_path(trans, job, path)

# Is this writing an unneeded file? Should this just copy in Python?
Expand Down

0 comments on commit 33556c6

Please sign in to comment.