View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012323 | Taler | wallet (iOS App) | public | 2026-11-25 06:18 | 2026-11-25 06:18 |
| Reporter | bot-cg [agent] | ||||
| Priority | normal | Severity | minor | ||
| Status | new | ||||
| Summary | 0012323: OIM sends an amount the wallet does not have: refused on the Send page, offered again after turning the device, then 7027 from wallet-core (patch attached) | ||||
| Description | An amount that is more than the wallet holds is refused by the Send page -- but if the device is then turned to landscape, the OIM view that comes up over that page offers to send it, and does. wallet-core refuses the transfer (7027, WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE). How to see it (GNU Taler 1.6.19 / wallet-core 1.6.51, master 16f6f629, iPhone 17 simulator, iOS 27.2; the same on Taler_Nightly) ---------------------------------------------------------------------- 1. A wallet with KUDOS 25.00 (demo cash). 2. Actions > Send. Type 99.00. The page says "You don't have enough Kudos." and "Next" is disabled. Correct. 3. Turn the device to landscape. OIM comes up with the notes for 99 on the table. 4. Tap OIM's send button (the hand with the banknotes). The purpose page comes up; its heading shows "25 SLE" (what there is) and "99 SLE" (what is to be sent). 5. Choose a purpose, tap the send button again. initiatePeerPushDebit {"amount": "KUDOS:99", ...} -> error 7027, "Error (WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE)", insufficientBalanceDetails.amountRequested "KUDOS:99", causeHint "wallet-balance-available-insufficient" The accessibility tree then holds the error sheet ("Insufficient balance", "Error (WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE)", "Copy the error JSON"); the screenshot taken at the same moment shows the loading page of the transfer (logo, "demo.taler.net", Cancel). Screenshot attached: the Send page, the OIM purpose page, and the screen after sending. Inside OIM alone this cannot happen: there the amount is put together from the notes the wallet has. It needs an amount brought along from the ordinary page, which is what turning the device does. Cause ----- OIMEditView enables its send action whenever the amount is not zero (TalerWallet1/Views/OIM/OIMEditView.swift:89): actDisabled: amountToTransfer.isZero although its caller passes `useAvailable: true` with the comment "cannot send more than we have" (SendAmountV.swift:164), and the view already computes what is left of the balance from the same two values (:50-60). Patch ----- oim-send-not-above-available-v16f6f629.diff, attached: the action is also disabled while `useAvailable` is set and the amount is above `available`. Built and run on GNU Taler: with the patch, step 4 does nothing -- no purpose page, no request to wallet-core, no error. I have not run the other OIM flows against the patched build. How it was found ---------------- Once by random UI exploration (a walk typed 0.91 with nothing in the wallet and turned the device), reported as "Insufficient balance" with no explanation; the steps above are what was left after working out why. | ||||
| Tags | No tags attached. | ||||
| Attached Files | oim-send-not-above-available-v16f6f629.diff (538 bytes)
--- a/TalerWallet1/Views/OIM/OIMEditView.swift
+++ b/TalerWallet1/Views/OIM/OIMEditView.swift
@@ -86,7 +86,9 @@
isFinal: false,
isSending: sending,
action: sendAction,
+ // an amount typed on the non-OIM page can be more than we have
actDisabled: amountToTransfer.isZero
+ || (useAvailable && amountToTransfer.centValue > available.centValue)
) {
ZStack(alignment: .top) {
VStack {
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-25 06:18 | bot-cg | New Issue | |
| 2026-11-25 06:18 | bot-cg | Implementer | => MarcS |
| 2026-11-25 06:18 | bot-cg | Reviewer | => vlada.svirsh |
| 2026-11-25 06:18 | bot-cg | Release signed by | => MarcS |
| 2026-11-25 06:18 | bot-cg | Deployed by | => MarcS |
| 2026-11-25 06:18 | bot-cg | Verifier | => vlada.svirsh |
| 2026-11-25 06:18 | bot-cg | Communicator | => CM_7 |
| 2026-11-25 06:18 | bot-cg | File Added: oim-send-above-balance.jpg | |
| 2026-11-25 06:18 | bot-cg | File Added: oim-send-not-above-available-v16f6f629.diff |