Skip to content

web/admin: handle non-string values in formatUUID to prevent Event Log crash (cherry-pick #20804 to version-2026.2)#21052

Merged
BeryJu merged 1 commit intoversion-2026.2from
cherry-pick/20804-to-version-2026.2
Mar 20, 2026
Merged

web/admin: handle non-string values in formatUUID to prevent Event Log crash (cherry-pick #20804 to version-2026.2)#21052
BeryJu merged 1 commit intoversion-2026.2from
cherry-pick/20804-to-version-2026.2

Conversation

@authentik-automation
Copy link
Contributor

Cherry-pick of #20804 to version-2026.2 branch.

Original PR: #20804
Original Author: @tysoncung
Cherry-picked commit: 82111d7

…g crash (#20804)

fix(web): handle non-string values in formatUUID to prevent Event Log crash

When event context contains a device with a non-string pk value,
formatUUID crashes with TypeError: s.substring is not a function,
preventing the entire Event Log page from loading.

Add a type guard to coerce non-string values to their string
representation instead of crashing.

Fixes #20803
@netlify
Copy link

netlify bot commented Mar 20, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 40163a0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69bdb6d7f04d1c00080ded9a
😎 Deploy Preview https://deploy-preview-21052--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.

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.37%. Comparing base (cbedb16) to head (40163a0).
⚠️ Report is 2 commits behind head on version-2026.2.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##           version-2026.2   #21052   +/-   ##
===============================================
  Coverage           93.36%   93.37%           
===============================================
  Files                 979      979           
  Lines               55041    55041           
===============================================
+ Hits                51391    51394    +3     
+ Misses               3650     3647    -3     
Flag Coverage Δ
conformance 37.47% <ø> (+<0.01%) ⬆️
e2e 43.24% <ø> (+<0.01%) ⬆️
integration 22.37% <ø> (+<0.01%) ⬆️
unit 91.55% <ø> (+<0.01%) ⬆️
unit-migrate 91.60% <ø> (+<0.01%) ⬆️

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

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

@github-actions
Copy link
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-40163a0b4ada5e6b1c110384b31c2fbbc63695a6
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-40163a0b4ada5e6b1c110384b31c2fbbc63695a6

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

@BeryJu BeryJu merged commit f72d257 into version-2026.2 Mar 20, 2026
95 checks passed
@BeryJu BeryJu deleted the cherry-pick/20804-to-version-2026.2 branch March 20, 2026 22:40
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.

2 participants