{"action":"created","issue":{"url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1750","repository_url":"https://api.github.com/repos/commons-app/apps-android-commons","labels_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1750/labels{/name}","comments_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1750/comments","events_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1750/events","html_url":"https://github.com/commons-app/apps-android-commons/issues/1750","id":344956681,"node_id":"MDU6SXNzdWUzNDQ5NTY2ODE=","number":1750,"title":"App crashes when an upload is retried","user":{"login":"maskaravivek","id":3069373,"node_id":"MDQ6VXNlcjMwNjkzNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/3069373?v=4","gravatar_id":"","url":"https://api.github.com/users/maskaravivek","html_url":"https://github.com/maskaravivek","followers_url":"https://api.github.com/users/maskaravivek/followers","following_url":"https://api.github.com/users/maskaravivek/following{/other_user}","gists_url":"https://api.github.com/users/maskaravivek/gists{/gist_id}","starred_url":"https://api.github.com/users/maskaravivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maskaravivek/subscriptions","organizations_url":"https://api.github.com/users/maskaravivek/orgs","repos_url":"https://api.github.com/users/maskaravivek/repos","events_url":"https://api.github.com/users/maskaravivek/events{/privacy}","received_events_url":"https://api.github.com/users/maskaravivek/received_events","type":"User","site_admin":false},"labels":[{"id":684207419,"node_id":"MDU6TGFiZWw2ODQyMDc0MTk=","url":"https://api.github.com/repos/commons-app/apps-android-commons/labels/assigned","name":"assigned","color":"e99635","default":false},{"id":257201818,"node_id":"MDU6TGFiZWwyNTcyMDE4MTg=","url":"https://api.github.com/repos/commons-app/apps-android-commons/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-26T18:30:19Z","updated_at":"2018-08-06T08:12:25Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Summary:** \r\n\r\nI just opened my emulator and saw that there was a failed upload. I clicked on retry button and the app crashes. \r\n\r\n**Add System logs:**\r\n\r\n```\r\n2018-07-26 23:58:32.275 3004-3004/fr.free.nrw.commons.debug D/ContributionsActivity: Restarting for fr.free.nrw.commons.contributions.Contribution@3c770c\r\n    \r\n    --------- beginning of system\r\n2018-07-26 23:58:32.276 3004-3028/fr.free.nrw.commons.debug E/AndroidRuntime: FATAL EXCEPTION: UploadService\r\n    Process: fr.free.nrw.commons.debug, PID: 3004\r\n    java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{c92d88d 3004:fr.free.nrw.commons.debug/u0a126} (pid=3004, uid=10126) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS\r\n        at android.os.Parcel.readException(Parcel.java:1684)\r\n        at android.os.Parcel.readException(Parcel.java:1637)\r\n        at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:4199)\r\n        at android.app.ActivityThread.acquireProvider(ActivityThread.java:5476)\r\n        at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2239)\r\n        at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1517)\r\n        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1131)\r\n        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:984)\r\n        at android.content.ContentResolver.openInputStream(ContentResolver.java:704)\r\n        at fr.free.nrw.commons.upload.UploadService.uploadContribution(UploadService.java:196)\r\n        at fr.free.nrw.commons.upload.UploadService.handle(UploadService.java:138)\r\n        at fr.free.nrw.commons.upload.UploadService.handle(UploadService.java:48)\r\n        at fr.free.nrw.commons.HandlerService$ServiceHandler.handleMessage(HandlerService.java:26)\r\n        at android.os.Handler.dispatchMessage(Handler.java:102)\r\n        at android.os.Looper.loop(Looper.java:154)\r\n        at android.os.HandlerThread.run(HandlerThread.java:61)\r\n```\r\n \r\n **Commons app version:** \r\n\r\nbranch 2.8-release"},"comment":{"url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/comments/410625120","html_url":"https://github.com/commons-app/apps-android-commons/issues/1750#issuecomment-410625120","issue_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1750","id":410625120,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDYyNTEyMA==","user":{"login":"misaochan","id":3611199,"node_id":"MDQ6VXNlcjM2MTExOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3611199?v=4","gravatar_id":"","url":"https://api.github.com/users/misaochan","html_url":"https://github.com/misaochan","followers_url":"https://api.github.com/users/misaochan/followers","following_url":"https://api.github.com/users/misaochan/following{/other_user}","gists_url":"https://api.github.com/users/misaochan/gists{/gist_id}","starred_url":"https://api.github.com/users/misaochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misaochan/subscriptions","organizations_url":"https://api.github.com/users/misaochan/orgs","repos_url":"https://api.github.com/users/misaochan/repos","events_url":"https://api.github.com/users/misaochan/events{/privacy}","received_events_url":"https://api.github.com/users/misaochan/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T08:12:25Z","updated_at":"2018-08-06T08:12:25Z","author_association":"MEMBER","body":"There was an issue with security exceptions when users uploaded via Google Photos. Looks similar to the exception being mentioned here. Unfortunately I can't recall off the top of my head what exactly the issue was caused by.\r\n\r\nI am actually hoping that this should have been fixed with the merging of #1749  in `2.8-release` as that modifies the flow of the upload. Could you please test `2.8-release` now and see if this still happens?\r\n\r\n> Is there a way to delete a failed upload to retry later for the user?\r\n\r\nSorry, not clear what you mean by that?"}}
{"actor":{"display_login":"misaochan"}}