{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/25851","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/25851/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/25851/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/25851/events","html_url":"https://github.com/owncloud/core/issues/25851","id":171852157,"number":25851,"title":"Owncloud error when delete empty folder in smb folder on external storage","user":{"login":"lep86","id":16395762,"avatar_url":"https://avatars.githubusercontent.com/u/16395762?v=3","gravatar_id":"","url":"https://api.github.com/users/lep86","html_url":"https://github.com/lep86","followers_url":"https://api.github.com/users/lep86/followers","following_url":"https://api.github.com/users/lep86/following{/other_user}","gists_url":"https://api.github.com/users/lep86/gists{/gist_id}","starred_url":"https://api.github.com/users/lep86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lep86/subscriptions","organizations_url":"https://api.github.com/users/lep86/orgs","repos_url":"https://api.github.com/users/lep86/repos","events_url":"https://api.github.com/users/lep86/events{/privacy}","received_events_url":"https://api.github.com/users/lep86/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_external","name":"app:files_external","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/90","html_url":"https://github.com/owncloud/core/milestones/9.1.1","labels_url":"https://api.github.com/repos/owncloud/core/milestones/90/labels","id":1857607,"number":90,"title":"9.1.1","description":null,"creator":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"open_issues":206,"closed_issues":68,"state":"open","created_at":"2016-06-30T14:57:55Z","updated_at":"2016-08-19T11:15:27Z","due_on":"2016-08-23T04:00:00Z","closed_at":null},"comments":4,"created_at":"2016-08-18T09:02:28Z","updated_at":"2016-08-19T11:57:41Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Add SMB external storage with any Authentication method\r\n2. Share folder on that storage and Available for any User\r\n3. Log in ownclound like a user\r\n4. Log in SMB shared folder\r\n5. Create empty folder in smb folder\r\n6. Delete that empty folder\r\n7. Get error \"Error deleting file \"owncloudtest\"\"\r\n\r\n### Expected behaviour\r\nFolder in SMB folder delete and not get error \"Error deleting file \"owncloudtest\"\"\r\n\r\n### Actual behaviour\r\nWhen you delete any folder in the SMB folder icons remain, but in fact the folder in your shopping cart. this does not happen with the files, and if folder not emty Owncloud wrote a critical error in log. In user interface  i got \"Error deleting file \"owncloudtest\"\"\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 15.10\r\n**Web server:**\r\nApache 2.4.12\r\n**Database:**\r\nMysql5.7\r\n**PHP version:**\r\nPHP 5.6.11\r\n**ownCloud version:** (see ownCloud admin page)\r\n9.1\r\n**Updated from an older ownCloud or fresh install:**\r\nUpdate from 9.0.2 \r\n**Where did you install ownCloud from:**\r\nhttps://download.owncloud.org/download/repositories/stable/owncloud/\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\nTechnical information\r\n=====================\r\nThe following list covers which files have failed the integrity check. Please read\r\nthe previous linked documentation to learn more about the errors and how to fix\r\nthem.\r\n\r\nResults\r\n=======\r\n- core\r\n\t- EXTRA_FILE\r\n\t\t- .config.swp\r\n\r\nRaw output\r\n==========\r\nArray\r\n(\r\n    [core] => Array\r\n        (\r\n            [EXTRA_FILE] => Array\r\n                (\r\n                    [.config.swp] => Array\r\n                        (\r\n                            [expected] => \r\n                            [current] => 8d4dba41d0bd7caaca457327901b6cd20552a745b5fc351644aebf2468ca999db58b0bc24b382c7875732b7c151ed0aaddc292baa757b1daec10e5eb5a86b7ad\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n**List of activated apps:**\r\nEnabled:\r\n  - Activity: 2.3.2\r\n  - comments: 0.3.0\r\n  - dav: 0.2.5\r\n  - external: 1.2\r\n  - federatedfilesharing: 03.0\r\n  - Federation: 0.1.0\r\n  - Files: 1.5.1\r\n  - Files_external: 0.6.0\r\n  - Files_pdfviewer: 0.8.1\r\n  - Files_sharing: 0.10.0\r\n  - Files_texteditor: 2.1\r\n  - Files_trashbin: 0.9.0\r\n  - Files_versions: 1.3.0\r\n  - Files_videoplayer: 0.9.8\r\n  - Firstrunwizzard: 1.1\r\n  - gallery: 15.0.0\r\n  - notifications: 0.3.0\r\n  - provision_api: 0.5.0\r\n  - systemtags: 0.3.0\r\n  - templateeditor: 0.1\r\n  - updatenotification: 0.2.1\r\n  - user_externak: 0.4 \r\n  - uer_ldap: 0.9.0\r\n\r\n**The content of config/config.php:**\r\ncan't add\r\n**Are you using external storage, if yes which one:**\r\nlocal/smb\r\n**Are you using encryption:**\r\nno\r\n**Are you using an external user-backend, if yes which one:**\r\nLDAP/ActiveDirectory\r\n\r\n### Client configuration\r\n**Browser:**\r\nany\r\n**Operating system:**\r\nany\r\n### Logs\r\n#### Web server error log\r\ncant\r\nInsert your webserver log here\r\ncant\r\n#### ownCloud log (data/owncloud.log)\r\nException: {\"Message\":\"Unknown error (NT_STATUS_DELETE_PENDING) for \\/owncloudtest\",\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\Exception\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/Share.php(398): Icewind\\\\SMB\\\\Parser->checkForError(Array, '\\/owncloudtest')\\n#1 \\/var\\/www\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/Share.php(140): Icewind\\\\SMB\\\\Share->parseOutput(Array, '\\/owncloudtest')\\n#2 \\/var\\/www\\/owncloud\\/apps\\/files_external\\/lib\\/Lib\\/Storage\\/SMB.php(115): Icewind\\\\SMB\\\\Share->stat('\\/owncloudtest')\\n#3 \\/var\\/www\\/owncloud\\/apps\\/files_external\\/lib\\/Lib\\/Storage\\/SMB.php(361): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo('owncloudtest')\\n#4 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Wrapper.php(219): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->file_exists('owncloudtest')\\n#5 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Availability.php(240): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('owncloudtest')\\n#6 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Wrapper.php(219): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->file_exists('owncloudtest')\\n#7 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Wrapper.php(219): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('owncloudtest')\\n#8 \\/var\\/www\\/owncloud\\/apps\\/files_trashbin\\/lib\\/Trashbin.php(245): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('owncloudtest')\\n#9 \\/var\\/www\\/owncloud\\/apps\\/files_trashbin\\/lib\\/Storage.php(160): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash('files\\/owncloudt...')\\n#10 \\/var\\/www\\/owncloud\\/apps\\/files_trashbin\\/lib\\/Storage.php(106): OCA\\\\Files_Trashbin\\\\Storage->doDelete('owncloudtest', 'rmdir')\\n#11 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/View.php(1118): OCA\\\\Files_Trashbin\\\\Storage->rmdir('owncloudtest')\\n#12 \\/var\\/www\\/owncloud\\/lib\\/private\\/Files\\/View.php(340): OC\\\\Files\\\\View->basicOperation('rmdir', '\\/files\\/owncloud...', Array)\\n#13 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/Connector\\/Sabre\\/Directory.php(276): OC\\\\Files\\\\View->rmdir('\\/files\\/owncloud...')\\n#14 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#15 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/CorePlugin.php(285): Sabre\\\\DAV\\\\Tree->delete('files\\/owncloudt...')\\n#16 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#17 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/event\\/lib\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#18 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:DELETE', Array)\\n#19 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#20 \\/var\\/www\\/owncloud\\/apps\\/dav\\/appinfo\\/v1\\/webdav.php(56): Sabre\\\\DAV\\\\Server->exec()\\n#21 \\/var\\/www\\/owncloud\\/remote.php(164): require_once('\\/var\\/www\\/ownclo...')\\n#22 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/Parser.php\",\"Line\":74,\"User\":\"Admin\"}\r\n#### Browser log\r\ndon't know  how to get"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/240999601","html_url":"https://github.com/owncloud/core/issues/25851#issuecomment-240999601","issue_url":"https://api.github.com/repos/owncloud/core/issues/25851","id":240999601,"user":{"login":"jvillafanez","id":1477829,"avatar_url":"https://avatars.githubusercontent.com/u/1477829?v=3","gravatar_id":"","url":"https://api.github.com/users/jvillafanez","html_url":"https://github.com/jvillafanez","followers_url":"https://api.github.com/users/jvillafanez/followers","following_url":"https://api.github.com/users/jvillafanez/following{/other_user}","gists_url":"https://api.github.com/users/jvillafanez/gists{/gist_id}","starred_url":"https://api.github.com/users/jvillafanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvillafanez/subscriptions","organizations_url":"https://api.github.com/users/jvillafanez/orgs","repos_url":"https://api.github.com/users/jvillafanez/repos","events_url":"https://api.github.com/users/jvillafanez/events{/privacy}","received_events_url":"https://api.github.com/users/jvillafanez/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T11:57:41Z","updated_at":"2016-08-19T11:57:41Z","body":"When you ask ownCloud to delete the folder, it mainly does 2 things: send the delete request and then verify the folder is deleted. This is done by core, not by the external storage implementation. I don't know the reason for that, but I guess that some storages may not be so trusty when you delete something.\r\n\r\nSo ownCloud send the request, everything seems ok, and then ownCloud verify the file is deleted, but the backend storage (the EMC isilon in your case) answer with a \"delete pending\" instead of the expected \"file doesn't exists\".\r\n\r\nI guess ubuntu and others just send the delete request and consider the folder deleted even though it's not truly the case."}}
{"actor":{"display_login":"jvillafanez"}}