Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.2] Fix WSGI response status handling in controller methods #19520

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Feb 3, 2025

Fixes #19519. If a string is being set it can't just be the status code cast to a string (which would be correct for ASGI), as that fails in a2wsgi.

Easiest and most consistent is to just set the status code to an int and have the wsgi_status method look up the correct description.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

Fixes galaxyproject#19519.
If a string is being set and can't just be the status code cast to a
string (which would be correct for ASGI), as that fails in a2wsgi.

Easiest and most consistent is to just set the status code to an int and
have the wsgi_status method look up the correct description.
@github-actions github-actions bot added this to the 25.0 milestone Feb 3, 2025
@github-actions github-actions bot changed the title Fix WSGI response status handling in controller methods [24.2] Fix WSGI response status handling in controller methods Feb 3, 2025
@mvdbeek mvdbeek requested a review from a team February 3, 2025 17:06
@mvdbeek mvdbeek modified the milestones: 25.0, 24.2 Feb 4, 2025
@mvdbeek mvdbeek merged commit bcfc88a into galaxyproject:release_24.2 Feb 4, 2025
50 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants