Skip to content

Enable/Disable sync on a mixed selection reports a failure although it worked #3902

Closed

Description

@AlexAndBear

Steps to reproduce

  1. In "Shared with me", select a synced share and an unsynced share.
  2. Choose "Enable sync" (or "Disable sync").

Expected

Only the share that needs the change is changed; no error; the selection is cleared.

Actual

The request for the share that needs no change returns 409, so the UI shows "Failed to enable sync for the selected shares" and keeps the selection, although the server state is already correct.

Cause

packages/web-app-files/src/composables/actions/files/useFileActionsEnableSync.ts and .../useFileActionsDisableSync.ts make the action visible when some selected share needs it, but the handler then sends a request for every selected share.

Found during exploratory QA testing.

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