Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036706Openbravo ERPA. Platformpublic2017-08-23 14:192017-09-21 16:49
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR17Q4 
alostale
Core
No
0036706: Unreadable error message shown to the user if connection to central repository is lost when installing modules
An unreadable error message is shown to the user if the connection to central repository is lost when installing modules.

See attached images.
This problem can be reproduced randomly if a network connection problem happens during module installation. For example, it was reproduced in this CI job[1].

But it is possible to "force" that scenario:

1- Go to the [Module Management] window
2- Move to the "Add Modules" tab and search for any module
3- Switch off Internet
4- Click on "Install Now" --> The pop-up content is showing unnecessary information. And the following error message: "java.net.UnknownHostException: centralrepository.openbravo.com"
5- Click on "Continue" button of the pop-up --> A pop-up with the following error message is displayed: "java.lang.NullPointerException"

[1] http://ci.openbravo.com/job/int-modules-pgsql/2304/ [^]
No tags attached.
txt sample_error_stacktrace.txt (24,955) 2017-08-23 14:26
https://issues.openbravo.com/file_download.php?file_id=11003&type=bug
png ModuleDetailWrong.png (36,276) 2017-08-23 14:32
https://issues.openbravo.com/file_download.php?file_id=11004&type=bug
png

png installModules.png (80,781) 2017-08-23 14:32
https://issues.openbravo.com/file_download.php?file_id=11005&type=bug
png
Issue History
2017-08-23 14:19caristuNew Issue
2017-08-23 14:19caristuAssigned To => platform
2017-08-23 14:19caristuFile Added: installModules.png
2017-08-23 14:19caristuModules => Core
2017-08-23 14:19caristuTriggers an Emergency Pack => No
2017-08-23 14:23caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15685#r15685
2017-08-23 14:24caristuDescription Updatedbug_revision_view_page.php?rev_id=15687#r15687
2017-08-23 14:24caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15688#r15688
2017-08-23 14:25caristuDescription Updatedbug_revision_view_page.php?rev_id=15689#r15689
2017-08-23 14:26caristuFile Deleted: installModules.png
2017-08-23 14:26caristuFile Added: sample_error_stacktrace.txt
2017-08-23 14:27caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15690#r15690
2017-08-23 14:28caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15691#r15691
2017-08-23 14:32caristuFile Added: ModuleDetailWrong.png
2017-08-23 14:32caristuFile Added: installModules.png
2017-08-23 14:38caristuSummaryUnreadable error message shown to the user when connection to central repository is lost during module installation => Unreadable error message shown to the user if connection to central repository is lost when installing modules
2017-08-23 14:38caristuDescription Updatedbug_revision_view_page.php?rev_id=15692#r15692
2017-08-23 14:38caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15693#r15693
2017-08-24 13:57caristuAssigned Toplatform => caristu
2017-08-24 13:57caristuReview Assigned To => alostale
2017-08-24 14:01hgbotCheckin
2017-08-24 14:01hgbotNote Added: 0098634
2017-08-24 14:01hgbotStatusnew => resolved
2017-08-24 14:01hgbotResolutionopen => fixed
2017-08-24 14:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/120b7e71108115b1a7ffee06542a1046aa002b88 [^]
2017-08-29 08:28hgbotCheckin
2017-08-29 08:28hgbotNote Added: 0098679
2017-08-29 08:31alostaleNote Added: 0098680
2017-08-29 08:31alostaleStatusresolved => closed
2017-08-29 08:31alostaleFixed in Version => 3.0PR17Q4
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099325
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099335

Notes
(0098634)
hgbot   
2017-08-24 14:01   
Repository: erp/devel/pi
Changeset: 120b7e71108115b1a7ffee06542a1046aa002b88
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Aug 24 13:55:10 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/120b7e71108115b1a7ffee06542a1046aa002b88 [^]

fixes bug 36706: Unreadable error if lose Internet connection on module install

 Now a readable error message is displayed to the user if the Internet connection is lost when trying to install a module.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
---
(0098679)
hgbot   
2017-08-29 08:28   
Repository: erp/devel/pi
Changeset: 71a9ac7e63b37208b8342e101333db464ebe4810
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Aug 29 08:27:26 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/71a9ac7e63b37208b8342e101333db464ebe4810 [^]

related to bug 36706: show error msg just after detecting CR is unreacheable

  Other way, it was displayed after a long time out.

---
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
---
(0098680)
alostale   
2017-08-29 08:31   
reviewed + tested
(0099325)
hudsonbot   
2017-09-21 16:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9750b78d3e5c [^]
Maturity status: Test
(0099335)
hudsonbot   
2017-09-21 16:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9750b78d3e5c [^]
Maturity status: Test