Skip to content

Fix webserver crash when calling get /config#31057

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix_webserver_crash
May 5, 2023
Merged

Fix webserver crash when calling get /config#31057
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix_webserver_crash

Conversation

@pankajastro

Copy link
Copy Markdown
Member

currently, if the section is not found we raise AirflowNotFoundException
and that does not handle returning response gracefully and the web server crash
I think the right expectation to raise here should be NotFound


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 4, 2023
currently, if the section is not found we raise AirflowNotFoundException
and that does not handle returning response gracefully and the web server crash
I think the right expectation to raise here should be NotFound
@pankajastro
pankajastro force-pushed the fix_webserver_crash branch from e8bb51a to 56dbaeb Compare May 4, 2023 12:26

@o-nikolas o-nikolas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pierrejeambrun
pierrejeambrun merged commit 5b255dc into apache:main May 5, 2023
@pankajastro
pankajastro deleted the fix_webserver_crash branch May 5, 2023 10:53
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants