Skip to content

feat(federation): implement minimal federation user backend - #62471

Closed
leftybournes wants to merge 1 commit into
masterfrom
leftybournes/feat/federation-implement-minimal-backend
Closed

feat(federation): implement minimal federation user backend#62471
leftybournes wants to merge 1 commit into
masterfrom
leftybournes/feat/federation-implement-minimal-backend

Conversation

@leftybournes

@leftybournes leftybournes commented Jul 24, 2026

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

This adds a minimal user backend for federation that can continue to be built upon.

This was inspired by and fixes an issue where the "Deleted by" column in the trashbin is shown as "Unknown" if a file shared externally was deleted by a remote user. The "Deleted by" column will now correctly show the federated user as the deleter (e.g. bob@example.com)

Checklist

AI (if applicable)

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

Signed-off-by: Kent Delante <kent@delante.me>
@leftybournes leftybournes added this to the Nextcloud 35 milestone Jul 24, 2026
@leftybournes
leftybournes requested a review from a team as a code owner July 24, 2026 07:22
@leftybournes
leftybournes requested review from Altahrim, come-nc, provokateurin and salmart-dev and removed request for a team July 24, 2026 07:22
@leftybournes

Copy link
Copy Markdown
Member Author

Tests are related. I'm looking into it.

}

#[\Override]
public function hasUserListings() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

need return types for every of these methods and parameter types for the methods where it is defined in IUserBackend/UserInterface

}

#[\Override]
public function getDisplayNames($search = '', $limit = null, $offset = null) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's better to leave the default implementation from ABackend than returning an empty array

And ideally a proper implementation of this method is implemented based on a new method ICloudIdManager::resolveCloudIds(array $ids);

@leftybournes

Copy link
Copy Markdown
Member Author

I tried working on this but it seems to increase the complexity just to fix the "deleted-by" issue for federated shares. It causes issues with guest accounts and e-mail address usernames.

I worked on a new PR that directly fixes the "deleted-by" issue with federated shares in #62925

@leftybournes
leftybournes marked this pull request as draft August 5, 2026 07:32
@leftybournes

Copy link
Copy Markdown
Member Author

Closing in favor of the PR mentioned above.

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