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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013040
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorsometimes2010-04-19 15:502010-04-24 00:00
ReporterjpabloaeView Statuspublic 
Assigned Todbaz 
PriorityimmediateResolutionfixedFixed in Version2.50MP15
StatusclosedFix in branchpiFixed in SCM revision7fdc688179fe
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_19
OS Version2.6.18Database version8.3.10Ant version1.7.1
Product VersionpiSCM revision61774dffb279 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013040: Servlet container restart timing issue, 404 in login

DescriptionAfter rebuilding the system due to a module (un)installation you're given the chance to restart the Servlet Container (Tomcat). Once you do that a "b" starts spinning in the middle of the screen. Sometimes it goes to the login screen too early and you get a 404 error. If you wait for some time (30-60 seconds) and reload the page then it load the login page correctly.

This is a blocker specially for running automated tests with modules. It seems that the automated tests trigger this (potential) bug more easily than manually, so I'll describe how to reproduce it below.
Steps To Reproduce1. Run install.source of erp/devel/pi in rev 61774dffb279

hg clone -r 61774dffb279 https://code.openbravo.com/erp/devel/pi [^]
(run the setup)
ant install.source

2. Download and configure the automated tests suite:

cd pi
hg clone https://code.openbravo.com/tools/automation/2.50/ [^] smoke
cp smoke/config/OpenbravoERPTest.properties.template smoke/config/OpenbravoERPTest.properties
(edit OpenbravoERPTest.properties and set "openbravo.url" to http://hostname:port [^] and "openbravo.context" to the right one. Also "openbravo.application", which should match the "source.path" in the ERP's Openbravo.properties).

3. Apply the attached patch as follows:

cd pi/smoke
patch -p1 < qs-es.patch

4. Create a file in pi/smoke/testfiles/SystemKey.txt and paste a valid key with access to QuickStart Spain (e.g. the Golden Key).

5. Run the smoke test:

(start tomcat manually and make sure you can access Openbravo ERP)
(close any running firefox sessions)
cd pi/smoke
ant quickstart-spain

This will first activate the instance, then install Quickstart Spain and rebuild the system. And then uninstall it and rebuild the system again.

6. Once it finishes the rebuild it will automatically try to restart Tomcat. It doesn't fail always, it does 80-90% of the cases for us.
TagsNo tags attached.
Attached Filespatch file icon qs-es.patch [^] (6,088 bytes) 2010-04-19 15:50 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0026351)
hgbot (developer)
2010-04-19 20:02

Repository: erp/devel/pi
Changeset: 7fdc688179fe611c07bf9bbfd3d510d91a0bf1a9
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Mon Apr 19 20:16:04 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7fdc688179fe611c07bf9bbfd3d510d91a0bf1a9 [^]

Fixed issue 13040: Context reload check is now more accurate

---
M src/org/openbravo/erpCommon/ad_process/RestartingContext.html
---
(0026526)
hudsonbot (developer)
2010-04-21 10:43

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/7fdc688179fe [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/6aaf8711c872 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17101.obx [^]
(0026642)
jpabloae (reporter)
2010-04-23 16:37

I have tested this by performing the same steps I described in the "steps to reproduce". Additionally I've tested this upgrading Core with Selenium too. I haven't been able to reproduce it any more. So I'm closing the issue.

Thank you David.

- Issue History
Date Modified Username Field Change
2010-04-19 15:50 jpabloae New Issue
2010-04-19 15:50 jpabloae Assigned To => alostale
2010-04-19 15:50 jpabloae File Added: qs-es.patch
2010-04-19 15:52 jpabloae Issue Monitored: plujan
2010-04-19 16:09 shuehner Issue Monitored: shuehner
2010-04-19 16:20 iciordia Assigned To alostale => dbaz
2010-04-19 16:21 iciordia Priority urgent => immediate
2010-04-19 16:23 iciordia Status new => scheduled
2010-04-19 16:23 iciordia fix_in_branch => pi
2010-04-19 20:02 hgbot Checkin
2010-04-19 20:02 hgbot Note Added: 0026351
2010-04-19 20:02 hgbot Status scheduled => resolved
2010-04-19 20:02 hgbot Resolution open => fixed
2010-04-19 20:02 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7fdc688179fe611c07bf9bbfd3d510d91a0bf1a9 [^]
2010-04-21 10:43 hudsonbot Checkin
2010-04-21 10:43 hudsonbot Note Added: 0026526
2010-04-23 16:37 jpabloae Note Added: 0026642
2010-04-23 16:37 jpabloae Status resolved => closed
2010-04-23 16:37 jpabloae Fixed in Version => 2.50MP15
2010-04-24 00:00 anonymous sf_bug_id 0 => 2991571


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker