{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/3800","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/3800/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/3800/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/3800/events","html_url":"https://github.com/syncthing/syncthing/issues/3800","id":195431872,"number":3800,"title":"Syncthing not distinguishing DOS 8.3 aliases on Windows","user":{"login":"nicholaelaw","id":10719482,"avatar_url":"https://avatars0.githubusercontent.com/u/10719482?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholaelaw","html_url":"https://github.com/nicholaelaw","followers_url":"https://api.github.com/users/nicholaelaw/followers","following_url":"https://api.github.com/users/nicholaelaw/following{/other_user}","gists_url":"https://api.github.com/users/nicholaelaw/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholaelaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholaelaw/subscriptions","organizations_url":"https://api.github.com/users/nicholaelaw/orgs","repos_url":"https://api.github.com/users/nicholaelaw/repos","events_url":"https://api.github.com/users/nicholaelaw/events{/privacy}","received_events_url":"https://api.github.com/users/nicholaelaw/received_events","type":"User","site_admin":false},"labels":[{"id":67767667,"url":"https://api.github.com/repos/syncthing/syncthing/labels/enhancement","name":"enhancement","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/syncthing/syncthing/milestones/11","html_url":"https://github.com/syncthing/syncthing/milestone/11","labels_url":"https://api.github.com/repos/syncthing/syncthing/milestones/11/labels","id":1479707,"number":11,"title":"Unplanned (Contributions Welcome)","description":"Issues that no-one is currently working on or has the intention to work on anytime soon. We welcome any and all help with resolving these issues.","creator":{"login":"calmh","id":125426,"avatar_url":"https://avatars3.githubusercontent.com/u/125426?v=4","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"open_issues":181,"closed_issues":126,"state":"open","created_at":"2016-01-01T11:33:57Z","updated_at":"2017-07-25T09:45:56Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2016-12-14T03:32:53Z","updated_at":"2017-07-27T19:41:30Z","closed_at":null,"body":"This just happened to me and I'm having a hard time finding a solution besides file recovery.\r\n\r\nI have a folder that's sync'ed between the office computer and my desktop & NAS back home. Folder contains roughly 3k subfolders and 45k files, mainly txt, pdf, xlsx and R scripts & data file (rds).\r\n\r\n - what happened,\r\n\r\nLast night at home I noticed that there are two extra folders that I didn't create. I have a folder named `bulldozer`, and one the extra folder is named `BULLDO~1`; within `bulldozer` there is a subfolder named `LFDataTool`, and the other extra folder is named `LFDATA~1` and resides in the same parent directory.\r\n\r\nTo illustrate this, consider the following folder hierarchy:\r\n\r\n    - <sync folder root>\r\n        - bulldozer\r\n            - LFDATA~1\r\n                <partially matching LFDataTool>\r\n            - LFDataTool\r\n            <... other folders and files>\r\n        - BULLDO~1\r\n            <partially matching bulldozer>\r\n\r\nI briefly checked both folders and found them containing partial content from the matching originals. In a moment of confusion and eager for bedtime, I decided that these are temporary files and deleted them. To further complicate things, I deleted one folder on my PC, and the other through CIFS on the NAS. \r\n\r\nWhen I arrived at work this morning, I'm suprised that the content of both `bulldozer` and `LFDataTool` are mostly gone, what's left resembles the content of those two `~1` folders, which I deleted and may or may not have emptied the recycle bin. The PC at least has a recycle bin, but the NAS does not.\r\n\r\n - what you expected to happen instead,\r\n\r\nObviously I didn't expect to find two extra folders that I didn't create and weren't named as syncthing-conflict. Neither did I expect that deleting those folders could result in files being deleted in other folders. I'm desperately searching for file recovery programs, and it seems that browser cache has already overwritten some of those lost data. I'd have to wait until home to try a full recovery.\r\n\r\n - any steps to reproduce the problem.\r\n\r\nNot sure how to recreate this, but I was mainly working on my office computer. The home computer only gets powered on once every two days or so. The NAS however was constantly sync'ed and the extra two folders were visible on the NAS as well. One more detail, at the time of deletion, the folders have some failed items. They've been there for a while, from some symlinks generated during package development I think.\r\n\r\n### Version Information\r\n\r\nOffice: Windows 10 Pro, Syncthing 0.14.13\r\nHome: Windows 10 Pro, Syncthing 0.14.13\r\nNAS: Synology DSM 6.0, Syncthing 0.14.12"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/318465759","html_url":"https://github.com/syncthing/syncthing/issues/3800#issuecomment-318465759","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/3800","id":318465759,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars1.githubusercontent.com/u/1144861?v=4","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":"2017-07-27T19:41:30Z","updated_at":"2017-07-27T19:41:30Z","body":"This needs to be plugged in somewhere.\r\n\r\n```\r\nfunc ToLong(path string) (string, error) {\r\n        p, err := syscall.UTF16FromString(path)\r\n        if err != nil {\r\n                return \"\", err\r\n        }\r\n        b := p // GetLongPathName says we can reuse buffer\r\n        n := uint32(len(b))\r\n        for {\r\n                n, err = syscall.GetLongPathName(&p[0], &b[0], uint32(len(b)))\r\n                if err != nil {\r\n                        return \"\", err\r\n                }\r\n                if n <= uint32(len(b)) {\r\n                        return syscall.UTF16ToString(b[:n]), nil\r\n                }\r\n                b = make([]uint16, n)\r\n        }\r\n}\r\n```"}}
{"actor":{"display_login":"AudriusButkevicius"}}