files_lock icon indicating copy to clipboard operation
files_lock copied to clipboard

[Bug]: New version of an existing file cant be uploaded while the file is locked

Open InservNologin opened this issue 3 years ago • 6 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug, not a question or a configuration/webserver/proxy issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • [X] I agree to follow Nextcloud's Code of Conduct.

Bug description

When a file is locked and you have to upload a new version of the same file, you´ve to unlock it and upload the new version when before the user who blocked it could overwrite it while being blocked

Captura de pantalla de 2022-07-06 12-27-09

Steps to reproduce

  1. A file exists
  2. File is locked while editing
  3. Upload the file again edited
  4. Failed to upload the new version of the file

Expected behavior

The file should be overwritten by the user who blocked it when a new version is uploaded

Installation method

Manual installation

Operating system

RHEL/CentOS

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [X] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

--

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

InservNologin avatar Jul 06 '22 10:07 InservNologin

Cc @juliushaertl @ArtificialOwl @CarlSchwan

szaimen avatar Jul 06 '22 17:07 szaimen

What kind of file is this and did you manually lock it or did you use and editor that locks automatically on the file?

juliusknorr avatar Jul 06 '22 17:07 juliusknorr

Its with any type of file. The file is locked manually

InservNologin avatar Jul 07 '22 08:07 InservNologin

Nextcloud and app versions would also be interesting. I cannot reproduce that with the latest release.

juliusknorr avatar Jul 07 '22 10:07 juliusknorr

May #73 be related?

marcotrevisan avatar Jul 07 '22 13:07 marcotrevisan

Files might get locked by accessing them via Apps over WebDAV and rendering these workflows unusable.

This becomes a problem when editing files via WebDAV, as seen here: https://github.com/allotropia/nextcloud_files_libreoffice_edit/issues/16

Since the problem is part of the files_lock mechanic, this needs to be addressed here.

danir-de avatar Sep 23 '22 15:09 danir-de