{"action":"created","issue":{"url":"https://api.github.com/repos/deltachat/deltachat-android/issues/209","repository_url":"https://api.github.com/repos/deltachat/deltachat-android","labels_url":"https://api.github.com/repos/deltachat/deltachat-android/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/deltachat/deltachat-android/issues/209/comments","events_url":"https://api.github.com/repos/deltachat/deltachat-android/issues/209/events","html_url":"https://github.com/deltachat/deltachat-android/issues/209","id":278461678,"number":209,"title":"Message sent despite Access Error for folder","user":{"login":"Ampli-fier","id":22896574,"avatar_url":"https://avatars1.githubusercontent.com/u/22896574?v=4","gravatar_id":"","url":"https://api.github.com/users/Ampli-fier","html_url":"https://github.com/Ampli-fier","followers_url":"https://api.github.com/users/Ampli-fier/followers","following_url":"https://api.github.com/users/Ampli-fier/following{/other_user}","gists_url":"https://api.github.com/users/Ampli-fier/gists{/gist_id}","starred_url":"https://api.github.com/users/Ampli-fier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ampli-fier/subscriptions","organizations_url":"https://api.github.com/users/Ampli-fier/orgs","repos_url":"https://api.github.com/users/Ampli-fier/repos","events_url":"https://api.github.com/users/Ampli-fier/events{/privacy}","received_events_url":"https://api.github.com/users/Ampli-fier/received_events","type":"User","site_admin":false},"labels":[{"id":402169784,"url":"https://api.github.com/repos/deltachat/deltachat-android/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/deltachat/deltachat-android/milestones/1","html_url":"https://github.com/deltachat/deltachat-android/milestone/1","labels_url":"https://api.github.com/repos/deltachat/deltachat-android/milestones/1/labels","id":2991090,"number":1,"title":"Release 1.0","description":"Everything that must be done before we can release a 1.0.0 version should be collected here, esp \"show stoppers\". \r\n\r\nThis version could also be published eg. in the Play Store then. ","creator":{"login":"r10s","id":9800740,"avatar_url":"https://avatars2.githubusercontent.com/u/9800740?v=4","gravatar_id":"","url":"https://api.github.com/users/r10s","html_url":"https://github.com/r10s","followers_url":"https://api.github.com/users/r10s/followers","following_url":"https://api.github.com/users/r10s/following{/other_user}","gists_url":"https://api.github.com/users/r10s/gists{/gist_id}","starred_url":"https://api.github.com/users/r10s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r10s/subscriptions","organizations_url":"https://api.github.com/users/r10s/orgs","repos_url":"https://api.github.com/users/r10s/repos","events_url":"https://api.github.com/users/r10s/events{/privacy}","received_events_url":"https://api.github.com/users/r10s/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":4,"state":"open","created_at":"2017-12-20T14:14:58Z","updated_at":"2018-02-12T17:53:39Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-12-01T13:10:13Z","updated_at":"2018-02-12T21:27:47Z","closed_at":"2018-02-12T17:53:39Z","author_association":"COLLABORATOR","body":"**Delta Chat version**: 0.9.9\r\n\r\n**Expected behavior**\r\n\r\nNo message is sent, when a folder cannot be accessed.\r\n\r\n**Actual behavior**\r\n\r\nMessage with this attachment is sent:\r\n![screenshot_2017-11-30-15-33-57](https://user-images.githubusercontent.com/22896574/33483520-8060ab2e-d69e-11e7-9919-508f1ad6f6aa.png)\r\n(the snapshot shows two, but this is due to two trials)\r\n\r\n**Steps to reproduce the problem**\r\n\r\nStart a new chat and click on the paper clip to select attachments.\r\nSelect a folder that cannot be opened due to permission problems, in my case:\r\n\r\n![screenshot_2017-11-30-15-34-29](https://user-images.githubusercontent.com/22896574/33483587-d0c9dfcc-d69e-11e7-8286-e7483c28aa09.png)\r\n\r\nA toast message is shown: Access error.\r\nThen a message is sent as shown above.\r\n\r\n**Debug logs**\r\n\r\nFolder access prohibited:\r\n\r\n`shell@GT-I9100:/ $ cd /mnt`\r\n`shell@GT-I9100:/mnt $ ls -l media_rw/`\r\n`opendir failed, Permission denied`\r\n`1|shell@GT-I9100:/mnt $`\r\n\r\n\r\nlogcat when message is sent:\r\n\r\n`29:28.327 D lights  : set_light_buttons: 1`\r\n`29:28.516 V WindowManager: not Base app: Adding window Window{14991018 u0 com.b44t.messenger/com.b44t.messenger.LaunchActivity} at 12 of 16`\r\n`29:31.458 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@141b15c4 attribute=null, token = android.os.BinderProxy@9ec33f0`\r\n`29:36.032 D lights  : set_light_buttons: 2`\r\n`29:40.492 D lights  : set_light_buttons: 1`\r\n`29:40.784 I DeltaChat: T1: Attaching \"/mnt/sdcard\" for message type #60.`\r\n`29:40.787 I DeltaChat: T1: Signal job thread to wake up...`\r\n`29:40.788 I DeltaChat: T2: Job thread checks for pending jobs...`\r\n`29:40.893 I DeltaChat: T2: Executing job #1, action 800...`\r\n`29:40.902 D Yamaha-Audio: yamaha_mc1n2_audio_output_start()`\r\n`29:40.902 D Yamaha-Audio: yamaha_mc1n2_audio_route_start()`\r\n`29:40.902 D Yamaha-Audio: (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0`\r\n`29:41.662 W DeltaChat: T2: mailsmtp_mail: delta1@xxxxx.xxx, Stream error (3)`\r\n`29:41.736 I DeltaChat: T2: Job #1 delayed for 0 seconds`\r\n`29:41.738 I DeltaChat: T2: Executing job #1, action 800...`\r\n\r\nValues in database:\r\n\r\n`INSERT INTO \"msgs\" VALUES(260,'Mr.WiAV1xxxxx4.delta1@xxxxx.xxx','Chats',337,14,1,278,1512052180,60,26,1,0,'sdcard','','m=application/octet-stream`\r\n`f=/mnt/sdcard`\r\n`c=1',0);`\r\n\r\n**Code reference**\r\nhttps://github.com/deltachat/deltachat-android/blob/b37a91cdd9447b6443abca06b987c9216bda1c66/MessengerProj/src/main/java/com/b44t/messenger/DocumentSelectActivity.java#L302"},"comment":{"url":"https://api.github.com/repos/deltachat/deltachat-android/issues/comments/365067809","html_url":"https://github.com/deltachat/deltachat-android/issues/209#issuecomment-365067809","issue_url":"https://api.github.com/repos/deltachat/deltachat-android/issues/209","id":365067809,"user":{"login":"r10s","id":9800740,"avatar_url":"https://avatars2.githubusercontent.com/u/9800740?v=4","gravatar_id":"","url":"https://api.github.com/users/r10s","html_url":"https://github.com/r10s","followers_url":"https://api.github.com/users/r10s/followers","following_url":"https://api.github.com/users/r10s/following{/other_user}","gists_url":"https://api.github.com/users/r10s/gists{/gist_id}","starred_url":"https://api.github.com/users/r10s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r10s/subscriptions","organizations_url":"https://api.github.com/users/r10s/orgs","repos_url":"https://api.github.com/users/r10s/repos","events_url":"https://api.github.com/users/r10s/events{/privacy}","received_events_url":"https://api.github.com/users/r10s/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T21:27:47Z","updated_at":"2018-02-12T21:27:47Z","author_association":"OWNER","body":"Perfect :)"}}
{"actor":{"display_login":"r10s"}}