PIN confirmation problem in send #47

Closed
opened 2024-09-12 00:15:26 +02:00 by lash · 7 comments
Owner

@Alfred-mk reports;

When doing PIN confirmation for send, the PIN is requested twice.

On http the confirmation fails after second time (even if PIN is correct)

On CLI it succeeds.

Apparently, similar PIN check works with balance check.

@Alfred-mk reports; When doing PIN confirmation for send, the PIN is requested twice. On http the confirmation fails after second time (even if PIN is correct) On CLI it succeeds. Apparently, similar PIN check works with balance check.
lash added the
Kind/Bug
Priority
High
labels 2024-09-12 00:15:26 +02:00
Author
Owner

done

done
lash closed this issue 2024-09-17 18:41:41 +02:00
Member

I have done several tests on the "Send" node and "Change language". On the CLI, the menu flows without breaking. The rest either stall or return an error.

Running cmd/main.go
image

But this fails on africastalking, async and http

Running cmd/async/main.go and using a wrong PIN
image

Running cmd/async/main.go and using a correct PIN
image

  • Africastalking and http mimic the behavior of async
  • On cmd/main.go, the transaction PIN node is repeated if you use a valid PIN
I have done several tests on the "Send" node and "Change language". On the CLI, the menu flows without breaking. The rest either stall or return an error. Running cmd/main.go <img width="584" alt="image" src="attachments/d78cbd8f-b5a1-4831-895b-069d3ea0ab00"> But this fails on africastalking, async and http Running cmd/async/main.go and using a wrong PIN <img width="422" alt="image" src="attachments/f74e09e5-c0ed-4429-aabc-d642e3e526c5"> Running cmd/async/main.go and using a correct PIN <img width="425" alt="image" src="attachments/29739ee3-0b42-4493-9035-9d9754141689"> * Africastalking and http mimic the behavior of async * On cmd/main.go, the transaction PIN node is repeated if you use a valid PIN
Author
Owner

@Alfred-mk please rebase on #76 and try again.

It won't necessarily fix the issue, but would hopefully eliminate threaded access to db as potential problem source.

@Alfred-mk please rebase on #76 and try again. It won't necessarily fix the issue, but would hopefully eliminate threaded access to db as potential problem source.
Member

After comparing execution on cmd/main.go and cmd/async/main.go, it has been noted that LOAD statements are being executed each time they are encountered, causing the menu to display some nodes twice or more (such as PIN entries)

For example, if @code{LOAD} is called on node @file{foo/bar}, then execution descends to @file{foo/bar/baz} before returning to @file{foo/bar}, the second time the @code{LOAD} statement is encountered in @file{foo/bar} will have no effect.

This only happens on the cmd/main.go

All other binaries execute the LOAD and RELOAD even though one has not exited the menu.

After comparing execution on cmd/main.go and cmd/async/main.go, it has been noted that LOAD statements are being executed each time they are encountered, causing the menu to display some nodes twice or more (such as PIN entries) > For example, if @code{LOAD} is called on node @file{foo/bar}, then execution descends to @file{foo/bar/baz} before returning to @file{foo/bar}, the second time the @code{LOAD} statement is encountered in @file{foo/bar} will have no effect. This only happens on the cmd/main.go All other binaries execute the LOAD and RELOAD even though one has not exited the menu.
Author
Owner

Ok, I see. So that has to do with persistence of the cache, then. Thanks.

in fact not, current node gets re-executed when moving out of it.

~~Ok, I see. So that has to do with persistence of the cache, then. Thanks.~~ in fact not, current node gets re-executed when moving out of it.
Author
Owner

Related to #79

Related to https://git.grassecon.net/urdt/ussd/issues/79
lash added a new dependency 2024-09-23 15:50:00 +02:00
Author
Owner

resolved in dependency

resolved in dependency
lash closed this issue 2024-09-23 21:25:17 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: urdt/ussd#47
No description provided.