{"action":"reopened","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/4264","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4264/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4264/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4264/events","html_url":"https://github.com/realm/realm-cocoa/issues/4264","id":185420993,"number":4264,"title":"Improve handling incorrect encryption key for metadata realm","user":{"login":"stel","id":429275,"avatar_url":"https://avatars.githubusercontent.com/u/429275?v=3","gravatar_id":"","url":"https://api.github.com/users/stel","html_url":"https://github.com/stel","followers_url":"https://api.github.com/users/stel/followers","following_url":"https://api.github.com/users/stel/following{/other_user}","gists_url":"https://api.github.com/users/stel/gists{/gist_id}","starred_url":"https://api.github.com/users/stel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stel/subscriptions","organizations_url":"https://api.github.com/users/stel/orgs","repos_url":"https://api.github.com/users/stel/repos","events_url":"https://api.github.com/users/stel/events{/privacy}","received_events_url":"https://api.github.com/users/stel/received_events","type":"User","site_admin":false},"labels":[{"id":320260039,"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"stel","id":429275,"avatar_url":"https://avatars.githubusercontent.com/u/429275?v=3","gravatar_id":"","url":"https://api.github.com/users/stel","html_url":"https://github.com/stel","followers_url":"https://api.github.com/users/stel/followers","following_url":"https://api.github.com/users/stel/following{/other_user}","gists_url":"https://api.github.com/users/stel/gists{/gist_id}","starred_url":"https://api.github.com/users/stel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stel/subscriptions","organizations_url":"https://api.github.com/users/stel/orgs","repos_url":"https://api.github.com/users/stel/repos","events_url":"https://api.github.com/users/stel/events{/privacy}","received_events_url":"https://api.github.com/users/stel/received_events","type":"User","site_admin":false},"assignees":[{"login":"stel","id":429275,"avatar_url":"https://avatars.githubusercontent.com/u/429275?v=3","gravatar_id":"","url":"https://api.github.com/users/stel","html_url":"https://github.com/stel","followers_url":"https://api.github.com/users/stel/followers","following_url":"https://api.github.com/users/stel/following{/other_user}","gists_url":"https://api.github.com/users/stel/gists{/gist_id}","starred_url":"https://api.github.com/users/stel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stel/subscriptions","organizations_url":"https://api.github.com/users/stel/orgs","repos_url":"https://api.github.com/users/stel/repos","events_url":"https://api.github.com/users/stel/events{/privacy}","received_events_url":"https://api.github.com/users/stel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-26T15:04:52Z","updated_at":"2016-11-21T13:28:50Z","closed_at":null,"body":"`[RLMSyncManager sharedManager]` throws `Realm file decryption failed` exception if `sync_metadata.realm` was created with the encryption key which in some reason is not equal to the one stored in Keychain.\nRelated issue was reported for Browser: https://github.com/realm/realm-browser-osx/issues/228. The easiest way to reproduce this is just delete `io.realm.sync.keychain` item from the keychain.\n\nIs it safe to just delete `sync_metadata.realm` in this case?\n\n/c @austinzheng, @jpsim \n"}}
{"actor":{"display_login":"stel"}}