Skip to content

Commit

Permalink
Merge pull request #18672 from mvdbeek/display_application_error
Browse files Browse the repository at this point in the history
[24.1] Return error when following a link to a non-ready display application
  • Loading branch information
mvdbeek authored Aug 12, 2024
2 parents b0705ed + 858ace1 commit 6481c7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,13 @@ def display_application(
display_link.prepare_display()
preparable_steps = display_link.get_prepare_steps()
else:
raise Exception(f"Attempted a view action ({app_action}) on a non-ready display application")
# Ideally we should respond with 202 in both cases.
# Since we don't exactly know if any consumer relies on this we'll just keep continuing to
# respond with a 500 status code.
trans.response.status = 500
return trans.show_error_message(
f"Attempted a view action ({app_action}) on a non-ready display application"
)
return trans.fill_template_mako(
"dataset/display_application/display.mako",
msg=msg,
Expand Down

0 comments on commit 6481c7b

Please sign in to comment.