Skip to content

fix(core): return 404 for invalid js/css folder names - #66997

Open
szaimen wants to merge 1 commit into
masterfrom
fix/js-css-invalid-folder-404
Open

szaimen wants to merge 1 commit into
masterfrom
fix/js-css-invalid-folder-404

Conversation

@szaimen

@szaimen szaimen commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Requests like /js/../.htpasswd are rejected by the files layer with a NotPermittedException, which the JS and CSS controllers did not catch. Scanner probes therefore caused a 500 and an error-level log entry instead of a plain 404.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Requests like /js/../.htpasswd are rejected by the files layer with a
NotPermittedException, which the JS and CSS controllers did not catch.
Scanner probes therefore caused a 500 and an error-level log entry
instead of a plain 404.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen added this to the Nextcloud 36 milestone Nov 24, 2026
@szaimen
szaimen requested a review from a team as a code owner November 24, 2026 15:11
@szaimen szaimen added the bug label Nov 24, 2026
@szaimen
szaimen requested review from leftybournes and provokateurin and removed request for a team November 24, 2026 15:11
@szaimen szaimen added the 3. to review Waiting for reviews label Nov 24, 2026
@szaimen

szaimen commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable35

This branch has not been deployed

No deployments
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