Skip to content

fix(files_versions): create version entity instead of failing when missing#61202

Draft
solracsf wants to merge 1 commit into
masterfrom
fix/files_versions-create-version-entity-on-copy
Draft

fix(files_versions): create version entity instead of failing when missing#61202
solracsf wants to merge 1 commit into
masterfrom
fix/files_versions-create-version-entity-on-copy

Conversation

@solracsf

@solracsf solracsf commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

A COPY assigns the target a new file id without a version entity, so post_write_hook's updateVersionEntity() raised DoesNotExistException and crashed the request. Handle it in the listener (the caller) by creating the entity for the current content, leaving the backend free to keep throwing.

Checklist

AI (if applicable)

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

@solracsf solracsf force-pushed the fix/files_versions-create-version-entity-on-copy branch from c929d85 to be2b632 Compare June 11, 2026 11:11
Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf solracsf force-pushed the fix/files_versions-create-version-entity-on-copy branch from be2b632 to d9e7c4c Compare June 11, 2026 11:34
@susnux susnux added the community pull requests from community label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted community pull requests from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants