Skip to content

web/admin: restore file upload capability check - #26556

Merged
dominic-r merged 1 commit into
mainfrom
dominic/restore-file-upload-capability
Sep 30, 2026
Merged

dominic-r merged 1 commit into
mainfrom
dominic/restore-file-upload-capability

Conversation

@dominic-r

@dominic-r dominic-r commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Details

What does this PR change?

Restore the CanSaveMedia check before showing Upload on the Files page.

Why is this change needed?

Without configured file storage, the button opens a form that fails with HTTP 500. The guard added in #18646 was removed during the modal refactor in #24609. The existing storage guidance remains visible.

How was this tested?

make web passed, including formatting, lint, Lit analysis, and TypeScript compilation. Lit analysis reported 10 warnings in unrelated files. No live browser verification was performed.

Linked issues

Closes #26555. The separate storage documentation is #26557.

AI assistance: Codex investigated the history, restored the guard, and ran the checks under maintainer direction.

Restore the CanSaveMedia guard removed when the upload modal switched to ModalInvokerButton.

Closes: #26555
@dominic-r
dominic-r requested a review from a team as a code owner September 29, 2026 22:54
@dominic-r dominic-r self-assigned this Sep 29, 2026
@dominic-r dominic-r added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Sep 29, 2026

@kensternberg-authentik kensternberg-authentik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short and simple.

@dominic-r dominic-r added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Sep 29, 2026
@netlify

netlify Bot commented Sep 29, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit f44a2d0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6abc418f7282c300085bbd21
😎 Deploy Preview https://deploy-preview-26556--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.

@dominic-r
dominic-r enabled auto-merge (squash) September 29, 2026 22:56
@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
4583 2 4581 14
View the top 2 failed test(s) by shortest run time
ak-mdx.test.ts::ak-mdx renders compiled markdown › links are wrapped in <ak-md-a> with build-time URL resolution
Stack Traces | 52.8s run time
Relative `./create-oauth2-provider.md` resolved to docs site URL at build time
1000-captcha.test.ts::CAPTCHA stage › Renders the hCaptcha widget without a wrapper iframe
Stack Traces | 55.1s run time
locator.click: Error: strict mode violation: getByRole('button', { name: 'New Flow', exact: true }).or(getByRole('link', { name: 'New Flow', exact: true })) resolved to 2 elements:

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 36642250964 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-f44a2d04c9eb5ab5c12993f55f24e685e99ba71f
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-f44a2d04c9eb5ab5c12993f55f24e685e99ba71f

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

@dominic-r
dominic-r merged commit 97d105a into main Sep 30, 2026
236 of 240 checks passed
@dominic-r
dominic-r deleted the dominic/restore-file-upload-capability branch September 30, 2026 00:48
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #26564

GirlBossRush pushed a commit that referenced this pull request Oct 5, 2026
…o version-2026.8) (#26564)

web/admin: restore file upload capability check (#26556)

Restore the CanSaveMedia guard removed when the upload modal switched to ModalInvokerButton.

Closes: #26555

Co-authored-by: Dominic Roy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

POST /api/v3/admin/file/ returns 500 when uploading files via File Manager UI (local filesystem backend)

2 participants