{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2792","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2792/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2792/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2792/events","html_url":"https://github.com/syncthing/syncthing/issues/2792","id":135226738,"number":2792,"title":"Syncthing resurrects deleted files (as 128-byte empty files)","user":{"login":"canton7","id":568104,"avatar_url":"https://avatars.githubusercontent.com/u/568104?v=3","gravatar_id":"","url":"https://api.github.com/users/canton7","html_url":"https://github.com/canton7","followers_url":"https://api.github.com/users/canton7/followers","following_url":"https://api.github.com/users/canton7/following{/other_user}","gists_url":"https://api.github.com/users/canton7/gists{/gist_id}","starred_url":"https://api.github.com/users/canton7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canton7/subscriptions","organizations_url":"https://api.github.com/users/canton7/orgs","repos_url":"https://api.github.com/users/canton7/repos","events_url":"https://api.github.com/users/canton7/events{/privacy}","received_events_url":"https://api.github.com/users/canton7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-21T16:54:33Z","updated_at":"2016-02-21T18:18:59Z","closed_at":null,"body":"I copied a bunch of files into a Syncthing folder, and Syncthing synchronized them as they were copied. I then deleted a few of them (which may have been before the files finished synchronizing).\r\n\r\nAbout 10 minutes later, Syncthing resurrected three of the files deleted. They all have a size of 128 bytes, and 0 bytes on disk. Checking on the device that these files were synchronized to, I see that these 128-byte files exist there, too.\r\n\r\nNo messages in the logs (but I didn't have any tracing turned on).\r\n\r\n`rest/db/file` on my device (UAL5TFB):\r\n\r\n```json\r\n{\r\n   \"availability\":[\r\n      \"3MQH4HE-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX\"\r\n   ],\r\n   \"global\":{\r\n      \"flags\":\"0644\",\r\n      \"localVersion\":95221,\r\n      \"modified\":\"2016-02-16T07:51:12Z\",\r\n      \"name\":\"XXX\\\\SAM_1425.JPG\",\r\n      \"numBlocks\":1,\r\n      \"size\":128,\r\n      \"version\":[\r\n         \"UAL5TFB:2\",\r\n         \"3MQH4HE:1\"\r\n      ]\r\n   },\r\n   \"local\":{\r\n      \"flags\":\"0644\",\r\n      \"localVersion\":95221,\r\n      \"modified\":\"2016-02-16T07:51:12Z\",\r\n      \"name\":\"XXX\\\\SAM_1425.JPG\",\r\n      \"numBlocks\":1,\r\n      \"size\":128,\r\n      \"version\":[\r\n         \"UAL5TFB:2\",\r\n         \"3MQH4HE:1\"\r\n      ]\r\n   }\r\n}\r\n```\r\n\r\nand on the device the files were synchronized to (3MQH4HE):\r\n\r\n```json\r\n{\r\n   \"availability\":[\r\n      \"UAL5TFB-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX\"\r\n   ],\r\n   \"global\":{\r\n      \"flags\":\"0644\",\r\n      \"localVersion\":95221,\r\n      \"modified\":\"2016-02-16T07:51:12Z\",\r\n      \"name\":\"XXX/SAM_1425.JPG\",\r\n      \"numBlocks\":1,\r\n      \"size\":128,\r\n      \"version\":[\r\n         \"11535928201135251019:2\",\r\n         \"15789758954675685514:1\"\r\n      ]\r\n   },\r\n   \"local\":{\r\n      \"flags\":\"0644\",\r\n      \"localVersion\":127503,\r\n      \"modified\":\"2016-02-16T07:51:12Z\",\r\n      \"name\":\"XXX/SAM_1425.JPG\",\r\n      \"numBlocks\":1,\r\n      \"size\":128,\r\n      \"version\":[\r\n         \"11535928201135251019:2\",\r\n         \"15789758954675685514:1\"\r\n      ]\r\n   }\r\n}\r\n```\r\n\r\nSome version info:\r\n - UAL5TFB: Windows 10 64-bit, 0.12.19\r\n - 3MQH4HE: Linux 64-bit, 0.12.14"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/186878740","html_url":"https://github.com/syncthing/syncthing/issues/2792#issuecomment-186878740","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2792","id":186878740,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars.githubusercontent.com/u/1144861?v=3","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T18:18:59Z","updated_at":"2016-02-21T18:18:59Z","body":"One of the receivers"}}