mozilla-mobile / mozilla-vpn-client

A fast, secure and easy to use VPN. Built by the makers of Firefox.
https://vpn.mozilla.org
Other
465 stars 113 forks source link

Profile screen cannot be accessed after a delete-account action #3966

Closed data-sync-user closed 1 year ago

data-sync-user commented 2 years ago

VPN version:

Platforms:

Prerequisites:

Steps to reproduce:

  1. Sign in using an existing account;
  2. Go to Settings;
  3. Tap “Manage account” arrow;
  4. Observe the behavior;

Expected results:

Actual results:

Notes:

┆Issue is synchronized with this Jira Bug ┆Reporter: Valentina Virlics

data-sync-user commented 2 years ago

➤ Valentina Virlics commented:

Attaching logs.

[^MozillaVPN-logs (6).txt]

data-sync-user commented 2 years ago

➤ Andrea Marchesini commented:

In the log I see that the profile flow component starts the fetch of data:

[07.07.2022 16:42:50.595] Debug: (model - ProfileFlow) Set state ProfileFlow::StateInitial [07.07.2022 16:42:50.843] Debug: (main - TaskScheduler) Scheduling task: TaskGroup [07.07.2022 16:42:50.944] Debug: (networking - NetworkRequest) Network reply received - status: 200 - expected: 200 [07.07.2022 16:42:50.944] Debug: (main - TaskGetSubscriptionDetails) Get subscription details completed {"subscription":{"_subscription_type":"web","created":1651214320,"current_period_end":1657262320,"current_period_start":1657175920,"cancel_at_period_end":false,"end_at":null,"latest_invoice":"AC7C97C7-0073","plan_id":"price_1J0owvKb9q6OnNsLExNhEDXm","product_name":"Mozilla VPN","product_id":"prod_FiJ42WCzZNRSbS","status":"active","subscription_id":"sub_1KtnTQKb9q6OnNsLOd9rAuu3","promotion_code":null,"promotion_duration":null,"promotion_end":null},"payment":{"customerId":"cus_LazS6trqlpE61N","subscriptions":[{"_subscription_type":"web","created":1651214320,"current_period_end":1657262320,"current_period_start":1657175920,"cancel_at_period_end":false,"end_at":null,"latest_invoice":"AC7C97C7-0073","plan_id":"price_1J0owvKb9q6OnNsLExNhEDXm","product_name":"Mozilla VPN","product_id":"prod_FiJ42WCzZNRSbS","status":"active","subscription_id":"sub_1KtnTQKb9q6OnNsLOd9rAuu3","promotion_code":null,"promotion_duration":null,"promotion_end":null},{"_subscription_type":"web","created":1651588377,"current_period_end":1659537177,"current_period_start":1656858777,"cancel_at_period_end":false,"end_at":null,"latest_invoice":"AC7C97C7-0069","plan_id":"price_1JaMKgKb9q6OnNsL0oUGGVAg","product_name":"Relay Premium (stage)","product_id":"prod_KEq0LXqs7vysQT","status":"active","subscription_id":"sub_1KvMmbKb9q6OnNsL6ZAtSrAE","promotion_code":null,"promotion_duration":null,"promotion_end":null}],"billing_name":"test","payment_provider":"stripe","payment_type":"credit","last4":"0004","exp_month":3,"exp_year":2023,"brand":"diners"},"plan":{"amount":100,"currency":"usd","id":"price_1J0owvKb9q6OnNsLExNhEDXm","interval_count":1,"interval":"day","product_id":"prod_FiJ42WCzZNRSbS"},"plan_id":"price_1J0owvKb9q6OnNsLExNhEDXm","product_id":"prod_FiJ42WCzZNRSbS"} [07.07.2022 16:42:50.945] Debug: (main - TaskScheduler) Task completed: TaskGetSubscriptionDetailsbut somehow the data is not processed correctly. I suspect m_currentTask is out of sync. Could it be?

data-sync-user commented 2 years ago

➤ Valentina Virlics commented:

Verified this on iOS 15, while using Mozilla VPN 2.10 (2.202209052207).

After an account deletion action, user is signed out and while logging in with an existing account, the Manage account option cannot be accessed because the Settings screen is continuously loading.

See below ss.

!test.png|width=828,height=1792!

If tapping again on the Settings button, the Settings menu loads.

Reopening

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Verified this as fixed while using 2.12(202211132204) build, on iOS 15.7.

User can access Profile screen for an existing account after previously performing a delete account action.