{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/56","labels_url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/56/comments","events_url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/56/events","html_url":"https://github.com/evernote/evernote-cloud-sdk-ios/issues/56","id":47791801,"number":56,"title":"ENSessionUploadPolicyReplace creates note when it should not","user":{"login":"demosten","id":2745607,"avatar_url":"https://avatars.githubusercontent.com/u/2745607?v=3","gravatar_id":"","url":"https://api.github.com/users/demosten","html_url":"https://github.com/demosten","followers_url":"https://api.github.com/users/demosten/followers","following_url":"https://api.github.com/users/demosten/following{/other_user}","gists_url":"https://api.github.com/users/demosten/gists{/gist_id}","starred_url":"https://api.github.com/users/demosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demosten/subscriptions","organizations_url":"https://api.github.com/users/demosten/orgs","repos_url":"https://api.github.com/users/demosten/repos","events_url":"https://api.github.com/users/demosten/events{/privacy}","received_events_url":"https://api.github.com/users/demosten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-05T02:10:34Z","updated_at":"2015-01-28T22:44:30Z","closed_at":null,"body":"Setup:\r\n* Create a note in Business notebook\r\n* Store ENNote and ENNoteRef to it\r\n* Move the note to some of your personal notebooks (Using Evernote for Mac)\r\n* Execite this code with your stored ENNote and ENNoteRef:\r\n```Objective-C\r\n[[ENSession sharedSession] uploadNote:note policy:ENSessionUploadPolicyReplace toNotebook:nil orReplaceNote:noteRef progress:nil completion:^(ENNoteRef *newNoteRef, NSError *error) {\r\n\t// ...\r\n}];\r\n```\r\n* Now you have your note created back in you Business notebook. ENSessionUploadPolicyReplace should generate error instead of creating it I believe\r\n* If you try the other way around (have your note to personal notebook and move it to business) an error is generated"},"comment":{"url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/comments/71932789","html_url":"https://github.com/evernote/evernote-cloud-sdk-ios/issues/56#issuecomment-71932789","issue_url":"https://api.github.com/repos/evernote/evernote-cloud-sdk-ios/issues/56","id":71932789,"user":{"login":"everic","id":7154385,"avatar_url":"https://avatars.githubusercontent.com/u/7154385?v=3","gravatar_id":"","url":"https://api.github.com/users/everic","html_url":"https://github.com/everic","followers_url":"https://api.github.com/users/everic/followers","following_url":"https://api.github.com/users/everic/following{/other_user}","gists_url":"https://api.github.com/users/everic/gists{/gist_id}","starred_url":"https://api.github.com/users/everic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everic/subscriptions","organizations_url":"https://api.github.com/users/everic/orgs","repos_url":"https://api.github.com/users/everic/repos","events_url":"https://api.github.com/users/everic/events{/privacy}","received_events_url":"https://api.github.com/users/everic/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T22:44:30Z","updated_at":"2015-01-28T22:44:30Z","body":"Hi @demosten \r\nWhat would you expect when you are replacing a note in the trash? Do you want an error to be thrown? If in this case, then clients will not be able to restore a note in the trash."}}