Skip to content

"Create Space from selection" says it failed when only some files couldn't be copied #4250

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

When "Create Space from selection" can't copy one of the selected files, it says "Creating space failed…" even though the space was created and holds the other files. useFileActionsCreateSpaceFromResource.ts wraps creating the space and all copies in one try block, so any failed COPY ends up in the same catch, which only knows "Creating space failed…" (or the 425 case) and shows only the first error.

Reproduction Steps

  1. Select three files in your personal space
  2. Make the COPY of one of them fail (e.g. block that request in the browser dev tools)
  3. Choose "Create Space from selection" and confirm

Expected Outcome

The space is created with the other files, and the message says the space was created but some files couldn't be copied.

Actual Outcome

The error "Creating space failed…" appears, but the space exists in the Spaces overview with the other two files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions