Skip to content

Files saved into (server-side) read-only folders get deleted #10099

@danimo

Description

@danimo

⚠️ Before submitting, please verify the following: ⚠️

Bug description

Files that are being moved to a folder that is read only on the server results in deletion of said files. This is highly unexpected.

It seems that this is a further regression, see #7797.

Steps to reproduce

  1. from another account, share a read-only folder
  2. with your normal account, add a file to the now present read-only folder (i.e. touch keepme.txt)
  3. wait for the client to run a sync cycle
  4. verify that the file has now been deleted, contrary to expectation

Expected behavior

At least, the files should not be touched at all.

Even better yet, the local folder should not be writable either, or a warning should be triggered that some files cannot be synced.

Which files are affected by this bug

any

Operating system

macOS

Which version of the operating system you are running.

15.7.5

Installation method

Official MacOS Installer

Nextcloud Server version

33.0.5

Nextcloud Desktop Client version

33.0.5

Did this occur after an update or on a clean installation?

Minor version update (i.e. 33.0.0 → 33.0.1)

Are you using the Nextcloud Server Encryption module?

No

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP or Active Directory
  • SSO - SAML
  • Other

Additional info

This is reproducible on Windows and MacOS, probably also Linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions