Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014270Openbravo ERPA. Platformpublic2010-08-24 10:312010-10-14 00:00
psanjuan 
bemaill 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
2.50MP23 
Core
No
0014270: When changing the Settings from General Availabity to Test and the other way around an error is shown
When changing the Settings from General Availabity to Test and the other way around an error is shown
Go to General Setup || Application || Module Management || Module Management - tab Settings and set below values to Test.
- when doing a scan for updates, accept versions of the following status or highter = Test
- when searching for new modules,accept versions of the following status or higher= Test
- Save

Go to Installed Modules tab, scan for updates and then you get below attached screen (scan_test.png).
do not install anything, press cancel.

Go back to General Setup || Application || Module Management || Module Management - tab Settings and set below value to General Availability.
- when doing a scan for updates, accept versions of the following status or highter = General Availability

- Save

Go to Installed Modules tab, scan for updates and then you get below attached screen (scan_ga.png).
do not install anything, press cancel.
No tags attached.
related to defect 0014650 closed bemaill When uninstalling a module with an update available, I still have Install Updates Now option 
png scan_test.png (36,954) 2010-08-24 10:49
https://issues.openbravo.com/file_download.php?file_id=2897&type=bug
png

png scan_ga.png (40,814) 2010-08-24 10:50
https://issues.openbravo.com/file_download.php?file_id=2898&type=bug
png
Issue History
2010-08-24 10:31psanjuanNew Issue
2010-08-24 10:31psanjuanAssigned To => alostale
2010-08-24 10:48psanjuanDescription Updatedbug_revision_view_page.php?rev_id=710#r710
2010-08-24 10:49psanjuanFile Added: scan_test.png
2010-08-24 10:50psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=712#r712
2010-08-24 10:50psanjuanFile Added: scan_ga.png
2010-08-24 17:52shuehnerNote Added: 0030261
2010-08-24 18:14iciordiaNote Added: 0030262
2010-08-24 18:20shuehnerNote Added: 0030264
2010-08-30 09:04alostaleStatusnew => scheduled
2010-08-30 09:04alostalefix_in_branch => pi
2010-09-24 15:05alostaleAssigned Toalostale => bemaill
2010-09-27 08:50alostaleRelationship addedrelated to 0014650
2010-09-27 19:24bemaillNote Added: 0031399
2010-09-27 20:19iciordiaNote Added: 0031400
2010-10-13 09:07hgbotCheckin
2010-10-13 09:07hgbotNote Added: 0031791
2010-10-13 09:07hgbotStatusscheduled => resolved
2010-10-13 09:07hgbotResolutionopen => fixed
2010-10-13 09:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c8cc677ecd9920f8396a4297839013d84eb18d1a [^]
2010-10-13 10:08alostaleStatusresolved => closed
2010-10-13 10:08alostaleFixed in Version => 2.50MP23
2010-10-13 23:38hudsonbotCheckin
2010-10-13 23:38hudsonbotNote Added: 0031837
2010-10-14 00:00anonymoussf_bug_id0 => 3086966

Notes
(0030261)
shuehner   
2010-08-24 17:52   
Note: problem is that in the last screenshot we do call printPageInstall1 without anything to install or update (as the current maturity_update level does not allow anything to be updated (anymore)). -> then inside npe happens.

Suggestion for fix:
- When changing the maturity_update (global) level to something more restrictive -> clear update_available,update_ver_id for all modules
- When changing maturity_update for one module to something more restrictive -> clear update_available,update_ver_id for this one module

For the user means we does not see the 'unavailable' updates anymore and needs to use scan for updates again.

Note2: for the npe itself: its already marked as possible NPE by eclipse
(0030262)
iciordia   
2010-08-24 18:14   
Other suggestions:
-it should be possible to execute scan for updates several times. Each time the system should clean previous results since the answer can be different in time (eg. because new modules are published). Scan for updates should be resetable
-if there are internal changes in the instance regarding updating modules (eg. changes in maturity status configuration, installing/uninstalling modules, etc.) the system should automatically reset any previous scan for updates
-before applying updates the system should check that the available updates returned by the CR are still available and valid before proceeding
(0030264)
shuehner   
2010-08-24 18:20   
All good:
- with a.) bugfix to scan for updates (to reset,update to list of available updates)
- b.) same then note above
- c.) this is partially done, just the code didn't check for empty result (of list of updates available) -> hence the npe just needs to be caught and fixed
(0031399)
bemaill   
2010-09-27 19:24   
In my opinion this might be confusing:
- When changing maturity_update for one module to something more restrictive -> clear update_available,update_ver_id for this one module

If one does update scan, then changes the maturity acceptance level for the module from 'test'=>'general availability', saves settings (at this point the update info for the module will be cleaned), and immediately changes the maturity acceptance level for the module back to 'test' we expect the update info be available for the module, but in fact it's already gone.

Should we clean update information for all modules every time something is changed on 'Setting' tab? In other words - every time (any) settings are changed the user would have to trigger 'update scan'. It's not gonna happen too often so I suppose it's acceptable.
(0031400)
iciordia   
2010-09-27 20:19   
Valery,

I don't see a big problem with update info being cleaned after doing any change in the settings of acceptance level, although in some cases those changes do not really change the "visibility" of module-versions from that instance.

Maybe we could add a message in the settings window to let the user know that the update info has been removed -in order to ensure consistency-.

Ismael
(0031791)
hgbot   
2010-10-13 09:07   
Repository: erp/devel/pi
Changeset: c8cc677ecd9920f8396a4297839013d84eb18d1a
Author: Valery Lezhebokov <valery.lezhebokov <at> gmail.com>
Date: Wed Oct 06 12:03:47 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c8cc677ecd9920f8396a4297839013d84eb18d1a [^]

Fixes issue 14270: When changing the Settings from General Availabity to Test and the other way around an error is shown

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
M src/org/openbravo/erpCommon/ad_forms/ModuleManagementInstalled.html
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement_data.xsql
---
(0031837)
hudsonbot   
2010-10-13 23:38   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/c8cc677ecd99 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/c531f0a7334b [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18531.obx [^]