Repository navigation
core: return the intended status code from error views for all request methods (cherry-pick #24902 to version-2026.8) - #24958
Conversation
…t methods (#24902) * core: return the intended status code from error views for all request methods The views wired up as django's handler400/403/404/500 subclassed TemplateView directly. TemplateView only implements `get`, so its `dispatch` answers a failing POST/PUT/PATCH/DELETE with 405 Method Not Allowed and an `Allow: GET, HEAD, OPTIONS` header, discarding the status code the handler stands for. Any non-GET request that reached an error handler -- on any endpoint -- was reported as a 405 rather than the actual 400/403/404/500. Add a shared ErrorView base that renders the page for every method, and widen the dramatiq result handling in the outgoing sync mixin from ResultFailure to ResultError so a queued-but-not-yet-reported task returns the task log instead of escaping as an unhandled 500. closes #24230 * Apply suggestion from @rissson Co-authored-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: Jens L. <[email protected]> --------- Signed-off-by: Jens L. <[email protected]> Co-authored-by: Jens L. <[email protected]> Co-authored-by: Marc 'risson' Schmitt <[email protected]>
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## version-2026.8 #24958 +/- ##
==================================================
+ Coverage 91.38% 91.45% +0.07%
==================================================
Files 1147 1148 +1
Lines 72117 72148 +31
Branches 3875 3875
==================================================
+ Hits 65901 65984 +83
+ Misses 6181 6129 -52
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-3bbd21b129bdd59561bfe4af5906a6c8a45b7918
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-3bbd21b129bdd59561bfe4af5906a6c8a45b7918Afterwards, run the upgrade commands from the latest release notes. |
5b4b46d
into
version-2026.8
Cherry-pick of #24902 to
version-2026.8branch.Original PR: #24902
Original Author: @Souptik96
Cherry-picked commit: aca619f