nextcloud / nextcloud/ios

[Bug] Auto upload with multiple accounts is not working

Open
#2,536 1 comment 0 reactions 0 assignees View on GitHub

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
  1. enable "auto upload" for 1 (private) account (leave the 2nd (work) account as it is)
  2. take a picture, while the 1st (private) account is selected in the app
  3. picture is uploaded to the 1st (private) account
  4. switch to the 2nd (work) account
  5. take a picture
  6. the iOS app tries to upload it to the 1st (private) account but uses the credentials of the 2nd (work) account
  7. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.