[PR #2160] [MERGED] [SG-773][SG-777] Duplicate passwordless login requests #3396

Closed
opened 2025-11-26 23:32:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/2160
Author: @andrebispo5
Created: 10/31/2022
Status: Merged
Merged: 10/31/2022
Merged by: @andrebispo5

Base: masterHead: bugfix/SG-773-duplicate-requests


📝 Commits (7)

  • d2d1e1a [SG-773] Change method call to message send
  • c8eba57 [SG-773] Introduce lock to avoid concurrent executions of login requests
  • c6dff34 Merge branch 'master' into bugfix/SG-773-duplicate-requests
  • 16798d4 [SG-773][SG-775] add comment
  • 9e194b9 Merge branch 'master' into bugfix/SG-773-duplicate-requests
  • 49dba9d [SSG-773][SG-775] Refactor passwordlessLoginRequest string to constant
  • e44cc21 Merge branch 'bugfix/SG-773-duplicate-requests' of https://github.com/bitwarden/mobile into bugfix/SG-773-duplicate-requests

📊 Changes

3 files changed (+18 additions, -7 deletions)

View changed files

📝 src/App/App.xaml.cs (+16 -6)
📝 src/App/Services/PushNotificationListenerService.cs (+1 -1)
📝 src/Core/Constants.cs (+1 -0)

📄 Description

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Fix bug where in certain conditions multiple login request modals could appear to the user.

Code changes

Due to the nature of broadcast receiver, async messages can arrive at the same time causing racing problems. A lock was added to prevent multiple executions of passwordless login requests. The lock object was made static because of android notification clicks firing a new app instance.

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/2160 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 10/31/2022 **Status:** ✅ Merged **Merged:** 10/31/2022 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `master` ← **Head:** `bugfix/SG-773-duplicate-requests` --- ### 📝 Commits (7) - [`d2d1e1a`](https://github.com/bitwarden/android/commit/d2d1e1a0a2494eff8c23d78ea607ba52f420d90f) [SG-773] Change method call to message send - [`c8eba57`](https://github.com/bitwarden/android/commit/c8eba570270ad59fa55bb700f9703bd454aa8b3c) [SG-773] Introduce lock to avoid concurrent executions of login requests - [`c6dff34`](https://github.com/bitwarden/android/commit/c6dff34be78b474a4941be13fcfa73ba54d82a13) Merge branch 'master' into bugfix/SG-773-duplicate-requests - [`16798d4`](https://github.com/bitwarden/android/commit/16798d495ae9c1ae1aaab10210167cfd6d083a98) [SG-773][SG-775] add comment - [`9e194b9`](https://github.com/bitwarden/android/commit/9e194b9de54514a7f750075dec10bf0f9fb8080a) Merge branch 'master' into bugfix/SG-773-duplicate-requests - [`49dba9d`](https://github.com/bitwarden/android/commit/49dba9daf46617489a377fc16f4684308e0682ea) [SSG-773][SG-775] Refactor passwordlessLoginRequest string to constant - [`e44cc21`](https://github.com/bitwarden/android/commit/e44cc215e9abca811df883bfd1f1646e70354892) Merge branch 'bugfix/SG-773-duplicate-requests' of https://github.com/bitwarden/mobile into bugfix/SG-773-duplicate-requests ### 📊 Changes **3 files changed** (+18 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/App/App.xaml.cs` (+16 -6) 📝 `src/App/Services/PushNotificationListenerService.cs` (+1 -1) 📝 `src/Core/Constants.cs` (+1 -0) </details> ### 📄 Description ## Type of change - [X] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> Fix bug where in certain conditions multiple login request modals could appear to the user. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> Due to the nature of broadcast receiver, async messages can arrive at the same time causing racing problems. A lock was added to prevent multiple executions of passwordless login requests. The lock object was made static because of android notification clicks firing a new app instance. ## Screenshots <!--Required for any UI changes. Delete if not applicable--> ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:32:10 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#3396