wordpress-mobile / wordpress-mobile/WordPress-iOS

Disconnecting app from web admin security page can cause app crash

Open
#16,739 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Crash Posting/Editing Posts + Pages
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

Expected behavior

After the app has been disconnected, every attempt of an auth-required action displays a prompt to authenticate.

Actual behavior

After the app has been disconnected, the second attempt of an auth-required action causes the app to crash.

Steps to reproduce the behavior
  1. Log into WPCom account using the WPiOS app.
  2. Open the Posts list within the app.
  3. Disconnect the app connection via the web admin page: https://wordpress.com/me/security
  4. Tap Edit on an individual post. (attached video below starts here)
  5. Dismiss the auth prompts.
  6. Tap Edit on an individual post.
Tested on iPhone 11 Pro, iOS 14.6, WPiOS 17.6.0.3

https://user-images.githubusercontent.com/438664/123324876-f5771000-d4fc-11eb-83f7-121817bf428b.mov

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 in WPiOS 17.6.0.3 on iOS 14.6 using the listed WordPress.com security-page disconnect steps. Trace the second auth-required Edit attempt after dismissing the prompts; done means the app no longer crashes and each attempt displays an authentication prompt.

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.