GnuCash
Contact   Instructions
Bug 796783 - handling invalid date range in "get transaction..."
Summary: handling invalid date range in "get transaction..."
Status: NEW
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Import - AqBanking (show other bugs)
Version: git-maint
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: import
QA Contact: import
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-25 18:15 EDT by Di Mang
Modified: 2018-07-28 08:35 EDT (History)
3 users (show)

See Also:


Attachments
error message for invalid date range (134.56 KB, image/png)
2018-07-25 18:15 EDT, Di Mang
no flags Details

Description Di Mang 2018-07-25 18:15:47 EDT
Created attachment 372931 [details]
error message for invalid date range

The GnuCash attempts to get the transactions from the online bank even though the date range entered is incorrect.

Examples for incorrect user inputs:
1) "to"-date is smaller than "from"-date
2) "to"-date is in the future

In both cases GnuCash tries to get a connection to the online bank. It takes a while.
After that GnuCash shows an error message: "Error on executing job. Status: error - job contains errors". The error message is very general and does not say what is wrong.

It would be better to check the user inputs *before* the request will be send to
the bank, and to show a error message if the entered date range is wrong,
*without* creating the connection to the online bank.

examples error messages for invalid user data:
for (1): The date range is wrong. "To"-date cann't be smaller than the "from"-date.
for (2): The date range is wrong. "To"-date cann't be in the future. 

For more details see an image in attachment.
Comment 1 Di Mang 2018-07-28 08:35:17 EDT
I have created a bugfix for this, see PR:
https://github.com/Gnucash/gnucash/pull/389

Note You need to log in before you can comment on or make changes to this bug.