Skip to content

A failed space duplicate leaves a hidden partial copy and retries reuse its name #4287

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 duplicating a space fails partway (e.g. one file copy fails), the error says it failed, but a half-filled copy stays on the server, hidden from the Spaces overview, and every retry creates another space with the same "(1)" name. useSpaceActionsDuplicate creates the drive first and only adds it to the stores on success, so the created space stays hidden and the next name check doesn't see it.

Reproduction Steps

  1. Create a project space with a few files
  2. Make one of the file copies fail (e.g. inject a 500 for its COPY)
  3. Duplicate the space from the Spaces overview, then duplicate it again
  4. Reload the page

Expected Outcome

The partial copy shows up in the Spaces overview so it can be fixed or deleted, the user is told that not every file was copied, and a retry picks a free name.

Actual Outcome

Only "Failed to duplicate space" is shown and no new space is listed. After a reload there are two " (1)" spaces with partial content.

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