Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020630
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2012-05-29 12:282012-05-30 18:13
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in Version3.0MP12
StatusclosedFix in branchFixed in SCM revisionb87d6a90f2db
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020630: smartbuild should not fix the maintenance flag if update.database didn't finish successfully the last time it was run

DescriptionIn Openbravo, if a rebuild doesn't finish successfully, the system enters "maintenance mode", in which the user can only log as system administrator.

Smartbuild can set the flag which disables this mode. However, this currently happens always, regardless of the fact that smartbuild may or may not update (and therefore, fix) the database, depending on whether the flag -Dlocal was used or not.

This can give the user the false sensation that he is safe, whereas in reality, his database may still be broken.
Steps To Reproduce- Initiate update.database, and make it fail at some point in the middle of the process.
- Do smartbuild.
- Restart tomcat.
- Log in Openbravo. Realize that you are not in maintenance mode, but the database is clearly not right.
Proposed SolutionSmartbuild will only update the maintenance flag if it can find by looking in the current status of the system that the last update.database didn't fail.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0049422)
hgbot (developer)
2012-05-29 12:31

Repository: erp/devel/pi
Changeset: b87d6a90f2dba83b7e58a8307b1bdd4eabea4d47
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 29 12:30:40 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b87d6a90f2dba83b7e58a8307b1bdd4eabea4d47 [^]

Fixed issue 20630. Maintenance flag will only be set if update.database finished correctly.

---
M build.xml
---
(0049434)
AugustoMauch (manager)
2012-05-29 16:52

Code reviewed and verified in pi@faec5225c28a
(0049507)
hudsonbot (developer)
2012-05-30 18:13

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/3752a665362c [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2012-05-29 12:28 marvintm New Issue
2012-05-29 12:28 marvintm Assigned To => marvintm
2012-05-29 12:28 marvintm Modules => Core
2012-05-29 12:31 hgbot Checkin
2012-05-29 12:31 hgbot Note Added: 0049422
2012-05-29 12:31 hgbot Status new => resolved
2012-05-29 12:31 hgbot Resolution open => fixed
2012-05-29 12:31 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b87d6a90f2dba83b7e58a8307b1bdd4eabea4d47 [^]
2012-05-29 16:52 AugustoMauch Note Added: 0049434
2012-05-29 16:52 AugustoMauch Status resolved => closed
2012-05-29 16:52 AugustoMauch Fixed in Version => 3.0MP12
2012-05-30 18:13 hudsonbot Checkin
2012-05-30 18:13 hudsonbot Note Added: 0049507


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker