Commit 2f615fc
committed
fix: skip dedup merge of local existingOnesignalId
Guard the LoginUserOperation dedup+merge path with !IDManager.isLocalId.
When upgrading from 5.0.0-5.1.7 with a dropped anon-user create, switchUser
returns a local- existingOneSignalId. If RecoverFromDroppedLoginBug wins the
race and its null-existingOnesignalId op is queued first, merging the local
id flips canStartExecute to false and strands the op — the waiter (now
transferred) never wakes, and the stuck op blocks future recovery.1 parent 8fea1e9 commit 2f615fc
2 files changed
Lines changed: 39 additions & 3 deletions
File tree
- OneSignalSDK/onesignal/core/src
- main/java/com/onesignal/core/internal/operations/impl
- test/java/com/onesignal/core/internal/operations
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
173 | 202 | | |
174 | 203 | | |
175 | 204 | | |
| |||
0 commit comments