Skip to content

fix(playlists): hold a received playlist's owner to the actor that sent it - #2364

Merged
karlitschek merged 2 commits into
masterfrom
fix/playlist-origin
Sep 25, 2026
Merged

karlitschek merged 2 commits into
masterfrom
fix/playlist-origin

Conversation

@karlitschek

Copy link
Copy Markdown
Member

Author's description to follow. The list below is a factual index of the commits, not the description.

  • fix(playlists): a received Playlist is stored under the actor of the activity that carried it — or a channel on that actor's server attributed to it, which is how PeerTube sends them — rather than under whatever owner the document names. Playlists that name a local owner, an unknown owner, or arrive without an activity are refused. The check is in PlaylistService::receive(), the one path that writes received playlists. Tests in PlaylistInterfaceTest and PlaylistServiceTest; docs/Architecture.md updated.
  • chore(release): 0.26.65 with the rebuilt bundle, on master 0.26.63. Independent of fix: the 2026-09-25 review — backend, federation, queries, jobs, web client, operations #2363 (0.26.64); whichever merges second needs its version re-bumped.

Checks run locally

phpunit (6655), vitest (3173), psalm, php-cs-fixer — green. Integration tests run in CI only.

AI disclosure

The code, tests and this index were produced with Claude Code (Claude Opus 5.5) and are awaiting the author's review. Signed-off-by is added by the author.

🤖 Generated with Claude Code

Frank Karlitschek and others added 2 commits September 25, 2026 11:40
…nt it

A received Playlist is rebuilt into the collection of the actor named in its
attributedTo, matched by owner and title. The only check before that was that
the playlist's id is on the host that delivered it, which says nothing about
whose playlist it is: the owner was taken from the document as given.

The owner of a received playlist must now be the actor of the activity that
carried it, or a channel on that actor's server whose own attributedTo names
the actor (PeerTube sends playlists from the account and attributes them to
the channel). A playlist naming a local owner, an owner not known here, or
arriving without an activity is refused. Since the collection is looked up by
that verified owner, an Update can only rebuild a collection received from
the same remote actor. The check lives in PlaylistService::receive(), the one
path that writes received playlists.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Frank Karlitschek <frank.karlitschek@nextcloud.com>
Assisted-by: ClaudeCode:claude-opus-5
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Frank Karlitschek <frank.karlitschek@nextcloud.com>
@karlitschek
karlitschek merged commit b0ac4fc into master Sep 25, 2026
2 checks passed
@karlitschek
karlitschek deleted the fix/playlist-origin branch September 25, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant