nextcloud / nextcloud/ios

Too many login attempts

Open
#2,383 3 comments 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

Closing or Opening the iOS App generates 2 Login attempts.

Expected behavior

Do not login when closing the IOS App.
Only one login attempt when opening the app.

Logs

{"reqId":"3OtjyhiZ6CdlJ2H8bOnn","level":1,"time":"2023-03-28T08:45:35+00:00","remoteAddr":"x.y.z.t","user":"--","app":"admin_audit","method":"PROPFIND","url":"/remote.php/dav/files/monica","message":"Login attempt: "monica"","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0","version":"25.0.2.3","data":{"app":"admin_audit"}}
{"reqId":"3OtjyhiZ6CdlJ2H8bOnn","level":1,"time":"2023-03-28T08:45:35+00:00","remoteAddr":"x.y.z.t","user":"--","app":"admin_audit","method":"PROPFIND","url":"/remote.php/dav/files/monica","message":"Login attempt: "monica"","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0","version":"25.0.2.3","data":{"app":"admin_audit"}}
{"reqId":"3OtjyhiZ6CdlJ2H8bOnn","level":1,"time":"2023-03-28T08:45:35+00:00","remoteAddr":"x.y.z.t","user":"monica","app":"admin_audit","method":"PROPFIND","url":"/remote.php/dav/files/monica","message":"Login successful: "monica"","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0","version":"25.0.2.3","data":{"app":"admin_audit"}}

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

Start by reproducing the issue while opening and closing the iOS app, using the provided admin_audit logs to confirm duplicate login attempts. Trace the authentication requests triggered during the app lifecycle and identify where the closing request and duplicate opening request originate. Done means closing makes no login attempt and opening makes exactly one.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
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.