Commit 17fc13b
committed
Fix FAIL_UNAUTHORIZED loop when IV off and stuck login when IV arrives post-enqueue
OperationRepo: gate FAIL_UNAUTHORIZED re-queue on useIdentityVerification == true.
When IV is OFF, hasValidJwtIfRequired() always returns true so re-queued ops
were immediately eligible, creating a ~200ms infinite retry loop. Now IV-OFF
treats FAIL_UNAUTHORIZED as FAIL_NORETRY (drop + wake waiters).
OperationRepo: in removeOperationsWithoutExternalId(), clear local
existingOnesignalId on queued LoginUserOperations. When IV=ON arrives via
HYDRATE, anonymous CreateUserOperations are purged, orphaning the local ID
that LoginUserOperation.canStartExecute was waiting on translateIds to resolve.
Clearing it unblocks the operation and routes the executor through createUser().
LoginUserOperation: widen existingOnesignalId setter to internal.
Fix Operation.externalId KDoc to reflect that subclass constructors
set this field, not IOperationRepo at enqueue time.
Made-with: Cursor1 parent a292935 commit 17fc13b
File tree
3 files changed
+22
-4
lines changed- OneSignalSDK/onesignal/core/src/main/java/com/onesignal
- core/internal/operations
- impl
- user/internal/operations
3 files changed
+22
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| 289 | + | |
287 | 290 | | |
288 | | - | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| |||
542 | 545 | | |
543 | 546 | | |
544 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
545 | 563 | | |
546 | 564 | | |
547 | 565 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments