Skip to content

[Bug]: Old SMB external storage info is kept when changing configuration #55912

@Ivansss

Description

@Ivansss

⚠️ This issue respects the following points: ⚠️

Bug description

When changing the configuration of an SMB external storage, the previous configuration is kept in the database in oc_storages, together with all the metadata stored in oc_filecache about files in that external storage.

Steps to reproduce

  1. Create an SMB external storage as an admin with "Global credentials, manually entered" as the authentication method.
  2. User 1 sets their global credentials and accesses that external storage.
  3. The admin modifies the configuration of that external storage and sets "Login and password" as the authentication method.

Expected behavior

The storage info for User 1 is removed from oc_storages and oc_filecache, since the authentication has changed and User 1 can no longer access it using their global credentials.

Nextcloud Server version

30

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions