Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008992Openbravo ERP01. General setuppublic2009-05-11 16:202009-06-16 00:00
plujan 
marvintm 
normalminorhave not tried
closedfixed 
5
main 
pi 
Core
No
0008992: When uninstalling a module, if module folder cannot be deleted the behavior is odd
I uninstalled a module. For some reason, uninstall could not remove the module's folder. That caused a Warning sign instead of a Success on uninstalling.
But the main issue is that when rebuilding, an exception about a mutant trigger in AD_MODULE table was raised. And rebuild kept failing, so basically I got stuck with an uninstalled module and a pending (but failing) rebuild.

If the cause of the failure had so severe consequences, it is likely to have some nice way to resolve the main issue before.
Install a module
Open a terminal window and generate some kind of locking on module folder (i.e. generate a swap of an unsaved file)
With the file locked, uninstall the module
A Warning banner is displayed. Note that message is not very clear (and it's a warning, ergo I can continue)
You are prompted to rebuild the system
Launch the rebuild
An exception about a mutant trigger is raised.
If the error was bad enough to prevent a rebuild, an Error like message is more suitable than a Warning. I should not be able to continue neither, and I should have a guide about what went wrong, to solve it and try the failed process again.
250mp2, Modularity
Issue History
2009-05-11 16:20plujanNew Issue
2009-05-11 16:20plujanAssigned To => rafaroda
2009-05-11 16:20plujanRegression testing => No
2009-05-14 17:46psarobeTag Attached: Modularity
2009-05-14 17:46psarobeTag Attached: 250mp2
2009-05-14 17:47psarobeStatusnew => scheduled
2009-05-14 17:47psarobefix_in_branch => pi
2009-05-15 09:52rafarodaAssigned Torafaroda => alostale
2009-05-18 13:10iciordiaAssigned Toalostale => marvintm
2009-06-05 18:19hgbotCheckin
2009-06-05 18:19hgbotNote Added: 0017050
2009-06-05 18:19hgbotStatusscheduled => resolved
2009-06-05 18:19hgbotResolutionopen => fixed
2009-06-05 18:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5438aedafc4062b7d0d4dc23e517fbc9c3543416 [^]
2009-06-15 11:01sureshbabuStatusresolved => closed
2009-06-15 11:01sureshbabuNote Added: 0017292
2009-06-15 11:01sureshbabuFixed in Version => pi
2009-06-16 00:00anonymoussf_bug_id0 => 2806847

Notes
(0017050)
hgbot   
2009-06-05 18:19   
Repository: erp/devel/pi
Changeset: 5438aedafc4062b7d0d4dc23e517fbc9c3543416
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Jun 05 18:18:43 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5438aedafc4062b7d0d4dc23e517fbc9c3543416 [^]

Fixed issue 8992. Now if the module folder cannot be deleted when uninstalling a module, an error message will be shown, instead of a 'Process completed succesfully' message.

---
M src/org/openbravo/erpCommon/modules/UninstallModule.java
---
(0017292)
sureshbabu   
2009-06-15 11:01   
Tested working fine(not able to reproduce the scenario)