owncloud / encryption

:lock_with_ink_pen: server side encryption of files
GNU Affero General Public License v3.0
19 stars 13 forks source link

deleting multiple files from the webUI sometimes results in a `Duplicate entry exception` #74

Open individual-it opened 6 years ago

individual-it commented 6 years ago

see issue https://github.com/owncloud/core/issues/33325 some UI tests would fail from time to time, looking into the logs there are this exceptions when the test fails


[print-log:L171:2226s] {"reqId":"2FkvmVtYWj2G1O1ewhi8","level":4,"time":"2018-11-14T12:10:01+00:00","remoteAddr":"172.31.0.6","user":"--","app":"webdav","method":"DELETE","url":"\/public.php\/webdav\/lorem.txt","message":"Exception: An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [57, \"files_encryption\\\/keys\\\/files_trashbin\\\/files\\\/lorem.txt.d1542197401\", \"81aa28cace6e340db627e2497538dc27\", \"lorem.txt.d1542197401\", 2147512884, 2147512804]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '57-81aa28cace6e340db627e2497538dc27' for key 'fs_storage_path_hash': {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\UniqueConstraintViolationException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [57, \\\"files_encryption\\\\\\\/keys\\\\\\\/files_trashbin\\\\\\\/files\\\\\\\/lorem.txt.d1542197401\\\", \\\"81aa28cace6e340db627e2497538dc27\\\", \\\"lorem.txt.d1542197401\\\", 2147512884, 2147512804]:\\n\\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '57-81aa28cace6e340db627e2497538dc27' for key 'fs_storage_path_hash'\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(184): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(158): Doctrine\\\\DBAL\\\\DBALException::wrapException(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'An exception oc...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(943): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'UPDATE `oc_file...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(187): Doctrine\\\\DBAL\\\\Connection->executeQuery('UPDATE `oc_file...', Array, Array, NULL)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(547): OC\\\\DB\\\\Connection->executeQuery('UPDATE `oc_file...', Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(489): OC\\\\Files\\\\Cache\\\\Cache->moveFromCache(Object(OC\\\\Files\\\\Cache\\\\HomeCache), 'files_encryptio...', 'files_encryptio...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Wrapper\\\/CacheWrapper.php(183): OC\\\\Files\\\\Cache\\\\Cache->move('files_encryptio...', 'files_encryptio...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Updater.php(196): OC\\\\Files\\\\Cache\\\\Wrapper\\\\CacheWrapper->move('files_encryptio...', 'files_encryptio...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(344): OC\\\\Files\\\\Cache\\\\Updater->renameFromStorage(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files_encryptio...', 'files_encryptio...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(850): OC\\\\Files\\\\View->renameUpdate(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files_encryptio...', 'files_encryptio...')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(884): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'rename')\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Encryption\\\/Keys\\\/Storage.php(301): OC\\\\Files\\\\View->rename('\\\/user1\\\/files_en...', '\\\/user1\\\/files_en...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Encryption.php(282): OC\\\\Encryption\\\\Keys\\\\Storage->renameKeys('\\\/user1\\\/files\\\/si...', '\\\/user1\\\/files_tr...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#15 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(102): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OCA\\\\Files_Trashbin\\\\Storage->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/PermissionsMask.php(86): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#18 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(567): OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#19 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Trashbin.php(325): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->moveFromStorage(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#20 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(184): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash('simple-folder\\\/l...')\\n#21 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(119): OCA\\\\Files_Trashbin\\\\Storage->doDelete('files\\\/simple-fo...', 'unlink')\\n#22 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(262): OCA\\\\Files_Trashbin\\\\Storage->unlink('files\\\/simple-fo...')\\n#23 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/PermissionsMask.php(107): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->unlink('files\\\/simple-fo...')\\n#24 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1186): OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask->unlink('files\\\/simple-fo...')\\n#25 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(736): OC\\\\Files\\\\View->basicOperation('unlink', '\\\/lorem.txt', Array)\\n#26 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#27 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(747): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'delete')\\n#28 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(422): OC\\\\Files\\\\View->unlink('\\\/lorem.txt')\\n#29 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(183): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#30 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(295): Sabre\\\\DAV\\\\Tree->delete('lorem.txt')\\n#31 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(96): Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#32 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(464): Sabre\\\\DAV\\\\Server->emit('method:DELETE', Array)\\n#33 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(241): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#34 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(309): Sabre\\\\DAV\\\\Server->start()\\n#35 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/publicwebdav.php(95): Sabre\\\\DAV\\\\Server->exec()\\n#36 \\\/var\\\/www\\\/owncloud\\\/public.php(85): require_once('\\\/var\\\/www\\\/ownclo...')\\n#37 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":75}"}
[print-log:L134:1673s] {"reqId":"WOaSZzxyIItlAx1J79Wi","level":4,"time":"2018-11-14T15:01:12+00:00","remoteAddr":"192.168.48.4","user":"user1","app":"webdav","method":"DELETE","url":"\/remote.php\/dav\/files\/user1\/0","message":"Exception: An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [39, \"files_encryption\\\/keys\\\/files_trashbin\\\/files\\\/0.d1542207672\", \"e33452dbbcab676eaaa62ee71525fa1a\", \"0.d1542207672\", 2147503173, 2147502312]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '39-e33452dbbcab676eaaa62ee71525fa1a' for key 'fs_storage_path_hash': {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\UniqueConstraintViolationException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [39, \\\"files_encryption\\\\\\\/keys\\\\\\\/files_trashbin\\\\\\\/files\\\\\\\/0.d1542207672\\\", \\\"e33452dbbcab676eaaa62ee71525fa1a\\\", \\\"0.d1542207672\\\", 2147503173, 2147502312]:\\n\\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '39-e33452dbbcab676eaaa62ee71525fa1a' for key 'fs_storage_path_hash'\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(184): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(158): Doctrine\\\\DBAL\\\\DBALException::wrapException(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'An exception oc...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(943): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'UPDATE `oc_file...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(187): Doctrine\\\\DBAL\\\\Connection->executeQuery('UPDATE `oc_file...', Array, Array, NULL)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(547): OC\\\\DB\\\\Connection->executeQuery('UPDATE `oc_file...', Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(489): OC\\\\Files\\\\Cache\\\\Cache->moveFromCache(Object(OC\\\\Files\\\\Cache\\\\HomeCache), 'files_encryptio...', 'files_encryptio...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Updater.php(196): OC\\\\Files\\\\Cache\\\\Cache->move('files_encryptio...', 'files_encryptio...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(344): OC\\\\Files\\\\Cache\\\\Updater->renameFromStorage(Object(OCA\\\\Files_Trashbin\\\\Storage), 'files_encryptio...', 'files_encryptio...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(850): OC\\\\Files\\\\View->renameUpdate(Object(OCA\\\\Files_Trashbin\\\\Storage), Object(OCA\\\\Files_Trashbin\\\\Storage), 'files_encryptio...', 'files_encryptio...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(884): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'rename')\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Encryption\\\/Keys\\\/Storage.php(301): OC\\\\Files\\\\View->rename('\\\/user1\\\/files_en...', '\\\/user1\\\/files_en...')\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Encryption.php(282): OC\\\\Encryption\\\\Keys\\\\Storage->renameKeys('\\\/user1\\\/files\\\/0', '\\\/user1\\\/files_tr...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->rename('files\\\/0', 'files_trashbin\\\/...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(102): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/0', 'files_trashbin\\\/...')\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(567): OCA\\\\Files_Trashbin\\\\Storage->rename('files\\\/0', 'files_trashbin\\\/...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Trashbin.php(325): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->moveFromStorage(Object(OCA\\\\Files_Trashbin\\\\Storage), 'files\\\/0', 'files_trashbin\\\/...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(184): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash('0')\\n#18 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(130): OCA\\\\Files_Trashbin\\\\Storage->doDelete('files\\\/0', 'rmdir')\\n#19 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1186): OCA\\\\Files_Trashbin\\\\Storage->rmdir('files\\\/0')\\n#20 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(360): OC\\\\Files\\\\View->basicOperation('rmdir', '\\\/0', Array)\\n#21 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#22 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(372): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'delete')\\n#23 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(338): OC\\\\Files\\\\View->rmdir('\\\/0')\\n#24 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(183): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#25 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(295): Sabre\\\\DAV\\\\Tree->delete('files\\\/user1\\\/0')\\n#26 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(96): Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#27 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(464): Sabre\\\\DAV\\\\Server->emit('method:DELETE', Array)\\n#28 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(241): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#29 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(309): Sabre\\\\DAV\\\\Server->start()\\n#30 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(299): Sabre\\\\DAV\\\\Server->exec()\\n#31 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#32 \\\/var\\\/www\\\/owncloud\\\/remote.php(175): require_once('\\\/var\\\/www\\\/ownclo...')\\n#33 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":75}"}
[print-log:L171:2219s] {"reqId":"4GKlomsWxLFB29cITjgG","level":4,"time":"2018-11-14T17:12:09+00:00","remoteAddr":"192.168.80.5","user":"--","app":"webdav","method":"DELETE","url":"\/public.php\/webdav\/lorem.txt","message":"Exception: An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [57, \"files_encryption\\\/keys\\\/files_trashbin\\\/files\\\/lorem.txt.d1542215529\", \"1af242b0f0e9daee25496b5d0406502e\", \"lorem.txt.d1542215529\", 2147512886, 2147512806]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '57-1af242b0f0e9daee25496b5d0406502e' for key 'fs_storage_path_hash': {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\UniqueConstraintViolationException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [57, \\\"files_encryption\\\\\\\/keys\\\\\\\/files_trashbin\\\\\\\/files\\\\\\\/lorem.txt.d1542215529\\\", \\\"1af242b0f0e9daee25496b5d0406502e\\\", \\\"lorem.txt.d1542215529\\\", 2147512886, 2147512806]:\\n\\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '57-1af242b0f0e9daee25496b5d0406502e' for key 'fs_storage_path_hash'\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(184): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(158): Doctrine\\\\DBAL\\\\DBALException::wrapException(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'An exception oc...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(943): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'UPDATE `oc_file...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(187): Doctrine\\\\DBAL\\\\Connection->executeQuery('UPDATE `oc_file...', Array, Array, NULL)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(547): OC\\\\DB\\\\Connection->executeQuery('UPDATE `oc_file...', Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(489): OC\\\\Files\\\\Cache\\\\Cache->moveFromCache(Object(OC\\\\Files\\\\Cache\\\\HomeCache), 'files_encryptio...', 'files_encryptio...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Wrapper\\\/CacheWrapper.php(183): OC\\\\Files\\\\Cache\\\\Cache->move('files_encryptio...', 'files_encryptio...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Updater.php(196): OC\\\\Files\\\\Cache\\\\Wrapper\\\\CacheWrapper->move('files_encryptio...', 'files_encryptio...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(344): OC\\\\Files\\\\Cache\\\\Updater->renameFromStorage(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files_encryptio...', 'files_encryptio...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(850): OC\\\\Files\\\\View->renameUpdate(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files_encryptio...', 'files_encryptio...')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(884): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'rename')\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Encryption\\\/Keys\\\/Storage.php(301): OC\\\\Files\\\\View->rename('\\\/user1\\\/files_en...', '\\\/user1\\\/files_en...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Encryption.php(282): OC\\\\Encryption\\\\Keys\\\\Storage->renameKeys('\\\/user1\\\/files\\\/si...', '\\\/user1\\\/files_tr...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#15 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(102): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OCA\\\\Files_Trashbin\\\\Storage->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/PermissionsMask.php(86): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#18 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(567): OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#19 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Trashbin.php(325): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->moveFromStorage(Object(OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask), 'files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#20 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(184): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash('simple-folder\\\/l...')\\n#21 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(119): OCA\\\\Files_Trashbin\\\\Storage->doDelete('files\\\/simple-fo...', 'unlink')\\n#22 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(262): OCA\\\\Files_Trashbin\\\\Storage->unlink('files\\\/simple-fo...')\\n#23 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/PermissionsMask.php(107): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->unlink('files\\\/simple-fo...')\\n#24 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1186): OC\\\\Files\\\\Storage\\\\Wrapper\\\\PermissionsMask->unlink('files\\\/simple-fo...')\\n#25 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(736): OC\\\\Files\\\\View->basicOperation('unlink', '\\\/lorem.txt', Array)\\n#26 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#27 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(747): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'delete')\\n#28 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(422): OC\\\\Files\\\\View->unlink('\\\/lorem.txt')\\n#29 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(183): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#30 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(295): Sabre\\\\DAV\\\\Tree->delete('lorem.txt')\\n#31 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(96): Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#32 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(464): Sabre\\\\DAV\\\\Server->emit('method:DELETE', Array)\\n#33 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(241): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#34 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(309): Sabre\\\\DAV\\\\Server->start()\\n#35 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/publicwebdav.php(95): Sabre\\\\DAV\\\\Server->exec()\\n#36 \\\/var\\\/www\\\/owncloud\\\/public.php(85): require_once('\\\/var\\\/www\\\/ownclo...')\\n#37 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":75}"}
[print-log:L130:1707s] {"reqId":"GBj5kUcAjODQ6qGbDl2J","level":4,"time":"2018-11-14T18:03:49+00:00","remoteAddr":"192.168.96.4","user":"user1","app":"webdav","method":"DELETE","url":"\/remote.php\/dav\/files\/user1\/simple-folder","message":"Exception: An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [37, \"files_encryption\\\/keys\\\/files_trashbin\\\/files\\\/simple-folder.d1542218629\", \"dad2e334ee305ff69db5ee31258fdeee\", \"simple-folder.d1542218629\", 2147502145, 2147501478]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '37-dad2e334ee305ff69db5ee31258fdeee' for key 'fs_storage_path_hash': {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\UniqueConstraintViolationException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` =  ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [37, \\\"files_encryption\\\\\\\/keys\\\\\\\/files_trashbin\\\\\\\/files\\\\\\\/simple-folder.d1542218629\\\", \\\"dad2e334ee305ff69db5ee31258fdeee\\\", \\\"simple-folder.d1542218629\\\", 2147502145, 2147501478]:\\n\\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '37-dad2e334ee305ff69db5ee31258fdeee' for key 'fs_storage_path_hash'\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(184): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(158): Doctrine\\\\DBAL\\\\DBALException::wrapException(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'An exception oc...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(943): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'UPDATE `oc_file...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(187): Doctrine\\\\DBAL\\\\Connection->executeQuery('UPDATE `oc_file...', Array, Array, NULL)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(547): OC\\\\DB\\\\Connection->executeQuery('UPDATE `oc_file...', Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Cache.php(489): OC\\\\Files\\\\Cache\\\\Cache->moveFromCache(Object(OC\\\\Files\\\\Cache\\\\HomeCache), 'files_encryptio...', 'files_encryptio...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Updater.php(196): OC\\\\Files\\\\Cache\\\\Cache->move('files_encryptio...', 'files_encryptio...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(344): OC\\\\Files\\\\Cache\\\\Updater->renameFromStorage(Object(OCA\\\\Files_Trashbin\\\\Storage), 'files_encryptio...', 'files_encryptio...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(850): OC\\\\Files\\\\View->renameUpdate(Object(OCA\\\\Files_Trashbin\\\\Storage), Object(OCA\\\\Files_Trashbin\\\\Storage), 'files_encryptio...', 'files_encryptio...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(884): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'rename')\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Encryption\\\/Keys\\\/Storage.php(301): OC\\\\Files\\\\View->rename('\\\/user1\\\/files_en...', '\\\/user1\\\/files_en...')\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Encryption.php(282): OC\\\\Encryption\\\\Keys\\\\Storage->renameKeys('\\\/user1\\\/files\\\/si...', '\\\/user1\\\/files_tr...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(273): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(102): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(567): OCA\\\\Files_Trashbin\\\\Storage->rename('files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Trashbin.php(325): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->moveFromStorage(Object(OCA\\\\Files_Trashbin\\\\Storage), 'files\\\/simple-fo...', 'files_trashbin\\\/...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(184): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash('simple-folder')\\n#18 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_trashbin\\\/lib\\\/Storage.php(130): OCA\\\\Files_Trashbin\\\\Storage->doDelete('files\\\/simple-fo...', 'rmdir')\\n#19 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1186): OCA\\\\Files_Trashbin\\\\Storage->rmdir('files\\\/simple-fo...')\\n#20 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(360): OC\\\\Files\\\\View->basicOperation('rmdir', '\\\/simple-folder', Array)\\n#21 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(Array)\\n#22 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(372): OC\\\\Files\\\\View->emittingCall(Object(Closure), Array, 'file', 'delete')\\n#23 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(338): OC\\\\Files\\\\View->rmdir('\\\/simple-folder')\\n#24 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(183): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#25 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(295): Sabre\\\\DAV\\\\Tree->delete('files\\\/user1\\\/sim...')\\n#26 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(96): Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#27 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(464): Sabre\\\\DAV\\\\Server->emit('method:DELETE', Array)\\n#28 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(241): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#29 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(309): Sabre\\\\DAV\\\\Server->start()\\n#30 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(299): Sabre\\\\DAV\\\\Server->exec()\\n#31 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#32 \\\/var\\\/www\\\/owncloud\\\/remote.php(175): require_once('\\\/var\\\/www\\\/ownclo...')\\n#33 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":75}"}
PVince81 commented 5 years ago

@individual-it are you deleting files which have the same base file name from different folders ?

For example if you quickly delete:

it would result in three files called "lorem.txt" in the trashbin root, each with a different timestamp suffix value. except if you're too fast and the timestamp suffix value is the same... in this case, you bumped into https://github.com/owncloud/core/issues/23151

PVince81 commented 5 years ago

workaround would be to either add a 1ms delay or call the files differently... this situation seldom happens for actual user input because one can only select multiple files within the same folder, not multiple files. If you delete the parent folders then you get those folders in the root of the trashbin, not the file names.

individual-it commented 5 years ago

hmm that might be the case, interesting that in our tests-runs its only happens with encryption

individual-it commented 5 years ago

I bumped into that problem again and I think its different to what @PVince81 suggested the tests that have the problem do not delete the same filename

    When the user batch deletes these files using the webUI
      | name                |
      | data.zip            |
      | lorem.txt           |
      | simple-empty-folder |

in https://github.com/owncloud/core/blob/master/tests/acceptance/features/webUICreateDelete/deleteFilesFolders.feature#L204

or

    When the user batch deletes these files using the webUI
      | name          |
      | data.zip      |
      | lorem.txt     |
      | simple-folder |

in https://github.com/owncloud/core/blob/master/tests/acceptance/features/webUITrashbin/trashbinFilesFolders.feature#L48

and this are actions on the webUI, meaning they can happen to a user