Repository navigation
Fix admin settings save 500 error (v0.250.005) - #982
Conversation
|
Paul Lizer (@paullizer) Bionic711 I ran this PR through the new PR check and all the tests/checks passed. |
|
Chad Palmer (@chadpalmer) In your def test_route_policy_inventory_assets_and_version_are_current() -> None:
"""Verify the route policy test folder and config version reader are wired correctly."""
version_parts = read_config_version().split(".")
assert len(version_parts) == 3
assert all(part.isdigit() for part in version_parts)
assert Path(__file__).parent.name == "route_tests"The current version is brittle (hardcoded version I as testing and forgot to fix it), and we missed it but that is what is causing the pipeline failure. Once you get that done, Paul Lizer (@paullizer) will have to bypass the checks to pull this in which will fix that check. |
Bionic711 I updated the test method you highlighted above. Please let me know if you need any more updates. Thanks! |
|
Awesome Chad Palmer (@chadpalmer)! I appreciate getting on this so quickly. |
Summary
This PR fixes an HTTP 500 error on the
/admin/settingsPOST route and wires the change into versioning, fix documentation, and release notes.Changes
appsymbol inroute_frontend_admin_settings.pywith Flask'scurrent_appwhen regenerating custom logo and favicon files after a successful settings update.application/single_app/config.py.docs/explanation/fixes/ADMIN_SETTINGS_SAVE_500_FIX.mddocumenting the issue, root cause, fix, and guardrail checks.docs/explanation/release_notes.mddescribing the Admin Settings save 500 fix.Validation
python -m py_compile application/single_app/route_frontend_admin_settings.pypython scripts/check_swagger_routes.py application/single_app/route_frontend_admin_settings.pypython scripts/check_broken_access_control.py --full-file application/single_app/route_frontend_admin_settings.pypython scripts/check_xss_sinks.py --full-file application/single_app/route_frontend_admin_settings.pygit diff --check upstream/Development...HEADAll checks passed.
Impact