Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013040Openbravo ERPA. Platformpublic2010-04-19 15:502010-04-24 00:00
jpabloae 
dbaz 
immediatemajorsometimes
closedfixed 
202.6.18
pi 
2.50MP15 
Core
No
0013040: Servlet container restart timing issue, 404 in login
After 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.
1. 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.
No tags attached.
patch qs-es.patch (6,088) 2010-04-19 15:50
https://issues.openbravo.com/file_download.php?file_id=2455&type=bug
Issue History
2010-04-19 15:50jpabloaeNew Issue
2010-04-19 15:50jpabloaeAssigned To => alostale
2010-04-19 15:50jpabloaeFile Added: qs-es.patch
2010-04-19 15:52jpabloaeIssue Monitored: plujan
2010-04-19 16:09shuehnerIssue Monitored: shuehner
2010-04-19 16:20iciordiaAssigned Toalostale => dbaz
2010-04-19 16:21iciordiaPriorityurgent => immediate
2010-04-19 16:23iciordiaStatusnew => scheduled
2010-04-19 16:23iciordiafix_in_branch => pi
2010-04-19 20:02hgbotCheckin
2010-04-19 20:02hgbotNote Added: 0026351
2010-04-19 20:02hgbotStatusscheduled => resolved
2010-04-19 20:02hgbotResolutionopen => fixed
2010-04-19 20:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7fdc688179fe611c07bf9bbfd3d510d91a0bf1a9 [^]
2010-04-21 10:43hudsonbotCheckin
2010-04-21 10:43hudsonbotNote Added: 0026526
2010-04-23 16:37jpabloaeNote Added: 0026642
2010-04-23 16:37jpabloaeStatusresolved => closed
2010-04-23 16:37jpabloaeFixed in Version => 2.50MP15
2010-04-24 00:00anonymoussf_bug_id0 => 2991571

Notes
(0026351)
hgbot   
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   
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   
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.