Skip to content

core: return the intended status code from error views for all request methods (cherry-pick #24902 to version-2026.8) - #24958

Merged
kensternberg-authentik merged 1 commit into
version-2026.8from
cherry-pick/24902-to-version-2026.8
Aug 10, 2026
Merged

kensternberg-authentik merged 1 commit into
version-2026.8from
cherry-pick/24902-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #24902 to version-2026.8 branch.

Original PR: #24902
Original Author: @Souptik96
Cherry-picked commit: aca619f

…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]>
@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 3bbd21b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a79ee33a7da570008bd5354
😎 Deploy Preview https://deploy-preview-24958--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 3bbd21b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a79ee3377ed7b00076bc68e
😎 Deploy Preview https://deploy-preview-24958--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.56098% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.45%. Comparing base (10825e8) to head (3bbd21b).
⚠️ Report is 2 commits behind head on version-2026.8.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/lib/sync/outgoing/api.py 50.00% 1 Missing ⚠️
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              
Flag Coverage Δ
conformance 34.86% <21.95%> (-0.02%) ⬇️
e2e 39.56% <21.95%> (+0.24%) ⬆️
integration 31.41% <21.95%> (-0.02%) ⬇️
rust 38.89% <ø> (ø)
unit 93.10% <97.56%> (+<0.01%) ⬆️
unit-migrate 93.13% <97.56%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-3bbd21b129bdd59561bfe4af5906a6c8a45b7918

Afterwards, run the upgrade commands from the latest release notes.

@kensternberg-authentik
kensternberg-authentik merged commit 5b4b46d into version-2026.8 Aug 10, 2026
215 of 217 checks passed
@kensternberg-authentik
kensternberg-authentik deleted the cherry-pick/24902-to-version-2026.8 branch August 10, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants