[kmymoney] [Bug 452918] New: Payee > Account Numbers > IBAN does not accept pasted content with a space at the start
Duncan
bugzilla_noreply at kde.org
Sat Apr 23 18:52:03 BST 2022
https://bugs.kde.org/show_bug.cgi?id=452918
Bug ID: 452918
Summary: Payee > Account Numbers > IBAN does not accept pasted
content with a space at the start
Product: kmymoney
Version: 5.1.2
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: ux-ui
Assignee: kmymoney-devel at kde.org
Reporter: kde.bugs at cricalix.net
Target Milestone: ---
SUMMARY
The IBAN and BIC fields in the per-payee Account Numbers does not accept pasted
content from the clipboard on X11 if the content has whitespace at the
beginning
STEPS TO REPRODUCE
1. Open Kate
2. Type an IBAN, placing an extra space at the start
3. Highlight the IBAN
4. Ctrl-C to copy the IBAN
5. Open kMyMoney
6. Choose a payee
7. Choose Account Numbers
8. Select IBAN & BIC
9. Double-click the IBAN & BIC that shows up to show the entry fields
10. Place cursor in IBAN field
11. Try to paste with Ctrl-V or Ctrl-Shift-Ins
OBSERVED RESULT
Paste does not happen
EXPECTED RESULT
One of
1. Acceptance of the pasted content, with the leading whitespace stripped.
2. An error dialog explaining why the content was not accepted.
Given the UI will reformat an IBAN of the format IE48ICON11223344556677 into
IE48 ICON 1122 3344 5566 77, I would advocate for the first option; apply
strip() to the input, then validate that it's in the appropriate form for an
IBAN. If it's still not appropriate, *tell* the person that it's not valid -
don't silently fail.
SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-40-generic (64-bit)
Graphics Platform: X11
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list