{"action":"created","issue":{"url":"https://api.github.com/repos/rawstudio/rawstudio/issues/20","repository_url":"https://api.github.com/repos/rawstudio/rawstudio","labels_url":"https://api.github.com/repos/rawstudio/rawstudio/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/rawstudio/rawstudio/issues/20/comments","events_url":"https://api.github.com/repos/rawstudio/rawstudio/issues/20/events","html_url":"https://github.com/rawstudio/rawstudio/issues/20","id":136028625,"number":20,"title":"Nokia profile destroyed when trying to use it","user":{"login":"jerekupari","id":11538518,"avatar_url":"https://avatars.githubusercontent.com/u/11538518?v=3","gravatar_id":"","url":"https://api.github.com/users/jerekupari","html_url":"https://github.com/jerekupari","followers_url":"https://api.github.com/users/jerekupari/followers","following_url":"https://api.github.com/users/jerekupari/following{/other_user}","gists_url":"https://api.github.com/users/jerekupari/gists{/gist_id}","starred_url":"https://api.github.com/users/jerekupari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerekupari/subscriptions","organizations_url":"https://api.github.com/users/jerekupari/orgs","repos_url":"https://api.github.com/users/jerekupari/repos","events_url":"https://api.github.com/users/jerekupari/events{/privacy}","received_events_url":"https://api.github.com/users/jerekupari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-24T11:12:09Z","updated_at":"2016-02-25T20:27:51Z","closed_at":null,"body":"Now this seems a bit serious.\r\n\r\n0. Get a lumia 1020 dng-image eg. from https://blogs.windows.com/devices/2013/10/29/another-nokia-first-digital-negatives-raw-dng-lumia/ link to onedrive http://sdrv.ms/1ci0M0d\r\n\r\n1. Get the Nokia-released profiles: https://blogs.windows.com/devices/2014/01/15/available-now-dng-color-profiles-adobe-lightroom/ contains a link to onedrive: http://sdrv.ms/1gEguoy\r\n**edit:** Save the profiles to ~/.rawstudio/profiles/\r\n\r\n2. Open the image in rawstudio (the thumbnail is in wrong color at first, this is normal, it happens in Lightroom also).\r\n\r\n3. Try to add a downloaded profile, the image goes green and the profile is still not shown in the toolbox.\r\n\r\n4. Go to see that the size of the profile file is now 0 b, and modified date is set to just now.\r\n\r\nMaybe this is why Nokia/Microsoft says that the profiles are only for Lightroom..."},"comment":{"url":"https://api.github.com/repos/rawstudio/rawstudio/issues/comments/188966991","html_url":"https://github.com/rawstudio/rawstudio/issues/20#issuecomment-188966991","issue_url":"https://api.github.com/repos/rawstudio/rawstudio/issues/20","id":188966991,"user":{"login":"abrander","id":3726205,"avatar_url":"https://avatars.githubusercontent.com/u/3726205?v=3","gravatar_id":"","url":"https://api.github.com/users/abrander","html_url":"https://github.com/abrander","followers_url":"https://api.github.com/users/abrander/followers","following_url":"https://api.github.com/users/abrander/following{/other_user}","gists_url":"https://api.github.com/users/abrander/gists{/gist_id}","starred_url":"https://api.github.com/users/abrander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrander/subscriptions","organizations_url":"https://api.github.com/users/abrander/orgs","repos_url":"https://api.github.com/users/abrander/repos","events_url":"https://api.github.com/users/abrander/events{/privacy}","received_events_url":"https://api.github.com/users/abrander/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T20:27:51Z","updated_at":"2016-02-25T20:27:51Z","body":"Now I see the problem!\r\n\r\nWhen adding a profile Rawstudio will try to copy the file to `~/.rawstudio/profiles/`. If the profile is *already* present - and the user is trying to add *the same* file, the result will be a zero-byte file.\r\n\r\n`~/.rawstudio/profiles/` is not meant to be managed by the end user, but we should guard against this somehow."}}