Skip to content

Space and quota updates send the cached name: they undo renames made elsewhere and fail for user names with a dot #3674

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

Space and quota updates send the cached name: they undo renames made elsewhere and fail for user names with a dot. Cause: The calls send name: space.name: useSpaceActionsEditDescription.ts:27, useSpaceActionsSetIcon.ts:70, useSpaceActionsDeleteImage.ts:29, useSpaceActionsRestore.ts:39, useCreateSpace.ts:82,106,136 and packages/web-pkg/src/components/Spaces/QuotaModal.vue:123.

Reproduction Steps

  1. Rename a space in another tab, then change its subtitle, icon, image, readme or quota in the first tab.
  2. Or: in admin settings select a user with display name "Dr. John Smith" and use the batch action "Edit quota".

Expected Outcome

Only the changed property is updated.

Actual Outcome

The space name is silently reset to the old one. The batch quota fails with 400 "spacenames must not contain [/ \ .

Screenshot

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