Skip to content

fix(Router): Load attribute routes of apps not enabled for the current user - #66126

Open
marcelklehr wants to merge 1 commit into
masterfrom
fix/router-attribute-routes-group-restricted-apps
Open

marcelklehr wants to merge 1 commit into
masterfrom
fix/router-attribute-routes-group-restricted-apps

Conversation

@marcelklehr

Copy link
Copy Markdown
Member

Summary

When routing a request to a specific app, attribute routes were only loaded if the app is enabled for the current user. For apps restricted to groups this breaks requests that the app authenticates itself after routing (e.g. via custom bearer tokens), because no user is logged in at routing time yet. Routes from routes.php files, loading all routes and the CachingRouter do not have this restriction either.

Specific issue in the bookmarks app: An admin has restricted the bookmarks app to a certain group, but some public routes still need to be accessible even when nobody is logged in.

Checklist

AI (if applicable)

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

…t user

When routing a request to a specific app, attribute routes were only
loaded if the app is enabled for the current user. For apps restricted
to groups this breaks requests that the app authenticates itself after
routing (e.g. via custom bearer tokens), because no user is logged in
at routing time yet. Routes from routes.php files, loading all routes
and the CachingRouter do not have this restriction either.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr added this to the Nextcloud 36 milestone Nov 1, 2026
@marcelklehr marcelklehr added bug 3. to review Waiting for reviews labels Nov 1, 2026
@marcelklehr
marcelklehr requested a review from a team as a code owner November 1, 2026 15:23
@marcelklehr
marcelklehr requested review from Altahrim, icewind1991, leftybournes and salmart-dev and removed request for a team November 1, 2026 15:23

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authorization by bearer token fails on some servers (Floccus E019; HTTP status 405)

2 participants