{"action":"created","issue":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/74","labels_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/74/comments","events_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/74/events","html_url":"https://github.com/canton7/SyncTrayzor/pull/74","id":71675468,"number":74,"title":"Fix crash when renaming long path","user":{"login":"berrnd","id":2161815,"avatar_url":"https://avatars.githubusercontent.com/u/2161815?v=3","gravatar_id":"","url":"https://api.github.com/users/berrnd","html_url":"https://github.com/berrnd","followers_url":"https://api.github.com/users/berrnd/followers","following_url":"https://api.github.com/users/berrnd/following{/other_user}","gists_url":"https://api.github.com/users/berrnd/gists{/gist_id}","starred_url":"https://api.github.com/users/berrnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berrnd/subscriptions","organizations_url":"https://api.github.com/users/berrnd/orgs","repos_url":"https://api.github.com/users/berrnd/repos","events_url":"https://api.github.com/users/berrnd/events{/privacy}","received_events_url":"https://api.github.com/users/berrnd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T19:10:35Z","updated_at":"2015-04-28T19:31:08Z","closed_at":"2015-04-28T19:30:59Z","pull_request":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/pulls/74","html_url":"https://github.com/canton7/SyncTrayzor/pull/74","diff_url":"https://github.com/canton7/SyncTrayzor/pull/74.diff","patch_url":"https://github.com/canton7/SyncTrayzor/pull/74.patch"},"body":"This fixes a crash when renaming a file in a folder with path length > ~255 characters.\r\nSee also #72.\r\n\r\nRenamedEventArgs.OldFullPath throws a System.IO.PathTooLongException on accessing, when it's an extended-length path.\r\nIn the same situation, RenamedEventArgs.FullPath is auto resolved to the matching short path, so I think this is maybe a bug in .Net...\r\n\r\nBut: As renaming only happens in the same folder, we don't need to notify Syncthing additionally about the change in the \"old\" folder, because old == new."},"comment":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/comments/97177648","html_url":"https://github.com/canton7/SyncTrayzor/pull/74#issuecomment-97177648","issue_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/74","id":97177648,"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},"created_at":"2015-04-28T19:31:08Z","updated_at":"2015-04-28T19:31:08Z","body":"Amazing, thank you!"}}