-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
core: handle deserialization errors from FileField migration (cherry-pick #19067 to version-2025.12) #19168
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
Conversation
after migration 0054 changed icon fields from Django FileField to a TextField based custom FileField, old sessions which had serialized Source/Application model instances fail to deserialize. The old FieldFile descriptors try to access field.storage which no longer exists. We can't edit that migration since it has already been ran by many/ So, you add AttributeError and TypeError to exception handling in SessionStore.decode() to return an empty session instead of crashing with 500.
✅ 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-2025.12 #19168 +/- ##
===================================================
- Coverage 93.06% 92.81% -0.26%
===================================================
Files 946 946
Lines 52076 52076
===================================================
- Hits 48466 48334 -132
- Misses 3610 3742 +132
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-c1e66695fdb2c2aaa2f99662ad32dcd4ca85199e
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-c1e66695fdb2c2aaa2f99662ad32dcd4ca85199eAfterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #19067 to
version-2025.12branch.Original PR: #19067
Original Author: @dominic-r
Cherry-picked commit: 32f77f0