[Bug] Auto upload with multiple accounts is not working
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Steps to reproduce
- enable "auto upload" for 1 (private) account (leave the 2nd (work) account as it is)
- take a picture, while the 1st (private) account is selected in the app
- picture is uploaded to the 1st (private) account
- switch to the 2nd (work) account
- take a picture
- the iOS app tries to upload it to the 1st (private) account but uses the credentials of the 2nd (work) account
- picture remains on phone, 1st (private) account gets blocked (fail2ban), because there were too many wrong logins
Expected behaviour
use the credentials of the 1st (private) account where the "auto upload" is enabled and sync with this 1st (private) account
Actual behaviour
user of the 1st (private) account is blocked (fail2ban) and pictures are not synced.
Reasoning or why should it be changed/implemented?
Photo sync cannot be used if you have multiple accounts
Environment data
iOS version: iOS 16.5.1
Nextcloud iOS app version: 4.8.5.1
Server operating system: Debian 11
Web server: nginx
Database: mysql
PHP version: 8.2
Nextcloud version: 27
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the listed two-account auto-upload steps on the iOS app, then trace how the selected account and auto-upload account credentials are chosen. Done means a photo uploads to the account with auto upload enabled without using the other account's credentials or triggering an account lockout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100