Skip to content

OCA\DAV\Connector\Sabre\Exception\FileLocked - DB race condition #8239

@ghost

Description

Steps to reproduce

  1. Create a new user via admin user
  2. Login with new user
  3. Try to delete the files

Expected behaviour

All files should be deleted

Actual behaviour

All files, except "Nextcloud Manual.pdf" gets deleted

I checked my db for the "locked" table, but all files are set to "0"
Yes, this always happens
Yes, this also happend with other files, as well when I tried to rename files

All tests passed and cron works correct

Server configuration

Operating system: Ubuntu 16.04.3 LTS

Web server: Apache/2.4.29

Database: MySQL 5.7.21

PHP version: 7.2.2

Nextcloud version: 13

Updated from an older Nextcloud/ownCloud or fresh install: clean install

Where did you install Nextcloud from: wget, clean install

Logging

OCA\DAV\Connector\Sabre\Exception\FileLocked: "Nextcloud Manual.pdf" is locked
/var/www/html/cloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 179: OCA\DAV\Connector\Sabre\File->delete()
/var/www/html/cloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 287: Sabre\DAV\Tree->delete('Nextcloud Manua...')
[internal function] Sabre\DAV\CorePlugin->httpDelete(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/cloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/html/cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method DELETE', Array)
/var/www/html/cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/cloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
/var/www/html/cloud/remote.php - line 164: require_once('/var/www/html/c...')
{main}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions