{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/1610","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/1610/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/1610/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/1610/events","html_url":"https://github.com/nextcloud/android/issues/1610","id":261906516,"number":1610,"title":"Adding sdcard prompts immediate backup ","user":{"login":"jasonbayton","id":3178412,"avatar_url":"https://avatars2.githubusercontent.com/u/3178412?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonbayton","html_url":"https://github.com/jasonbayton","followers_url":"https://api.github.com/users/jasonbayton/followers","following_url":"https://api.github.com/users/jasonbayton/following{/other_user}","gists_url":"https://api.github.com/users/jasonbayton/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonbayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonbayton/subscriptions","organizations_url":"https://api.github.com/users/jasonbayton/orgs","repos_url":"https://api.github.com/users/jasonbayton/repos","events_url":"https://api.github.com/users/jasonbayton/events{/privacy}","received_events_url":"https://api.github.com/users/jasonbayton/received_events","type":"User","site_admin":false},"labels":[{"id":637385520,"url":"https://api.github.com/repos/nextcloud/android/labels/AutoUpload","name":"AutoUpload","color":"e99695","default":false},{"id":388626761,"url":"https://api.github.com/repos/nextcloud/android/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-01T10:25:41Z","updated_at":"2017-10-02T06:15:11Z","closed_at":null,"author_association":"NONE","body":"### Actual behaviour\r\nI've migrated to a new device and as normal have moved the SD card over with it.\r\n\r\nNextcloud detects all media files in autoupload folders as brand new and attempts to immediately upload on 1800 media files, overwriting those already there.\r\n\r\nI've had to remove and re-add the account to prevent this.\r\n\r\nWe need some form of check against what's uploaded already on the server.\r\n\r\n\r\n\r\n### Environment data\r\nAndroid version: 7.1.1\r\n\r\nDevice model: Moto Z Play\r\n\r\nStock or customized system: stock\r\n\r\nNextcloud app version: RC7\r\n\r\nNextcloud server version: 12.0.3"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/333448857","html_url":"https://github.com/nextcloud/android/issues/1610#issuecomment-333448857","issue_url":"https://api.github.com/repos/nextcloud/android/issues/1610","id":333448857,"user":{"login":"mario","id":5810,"avatar_url":"https://avatars3.githubusercontent.com/u/5810?v=4","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T06:15:11Z","updated_at":"2017-10-02T06:15:11Z","author_association":"MEMBER","body":"@tobiasKaminsky auto upload relies on timestamp modified + path to see if file has been changed/added. So it's either a case of file getting timestamp changed or SD card getting its mount point changed. \r\n\r\nThe only real solution is, tada, hashing :) So ... future :)"}}
{"actor":{"display_login":"mario"}}