Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0011478 | Openbravo ERP | A. Platform | public | 2009-11-24 16:20 | 2009-12-15 04:56 |
|
Reporter | pjuvara | |
Assigned To | iperdomo | |
Priority | immediate | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.50MP8 | |
Target Version | | Fixed in Version | 2.50MP10 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0011478: Heartbeat check can be bypassed |
Description | Starting from 2.50 MP6, the Module Management window checks that the heartbeat is enabled before modules can be downloaded.
This functionality however can be easily bypassed either intentionally or accidentally and must be strengthen.
Users can enable the heartbeat then go to the Process Request window and unschedule the corresponding process. As a result, the system considers the heartbeat enabled but no actual beat is sent. |
Steps To Reproduce | |
Proposed Solution | The Heartbeat Configuration window and the heartbeat status check in the Module Management window should check that not only that AD_System_Info.IsHeartbeatActive is set to Y but that there is also a scheduled process request to send beats. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-11-24 16:20 | pjuvara | New Issue | |
2009-11-24 16:20 | pjuvara | Assigned To | => rafaroda |
2009-11-24 16:20 | pjuvara | OBNetwork customer | => Yes |
2009-11-24 16:31 | iperdomo | Assigned To | rafaroda => iperdomo |
2009-11-24 17:04 | iperdomo | Status | new => scheduled |
2009-11-24 17:04 | iperdomo | fix_in_branch | => pi |
2009-11-24 23:08 | hgbot | Checkin | |
2009-11-24 23:08 | hgbot | Note Added: 0022149 | |
2009-11-24 23:08 | hgbot | Status | scheduled => resolved |
2009-11-24 23:08 | hgbot | Resolution | open => fixed |
2009-11-24 23:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9897d630fd6809e104faf50c769763b1933c0e63 [^] |
2009-12-04 09:14 | hudsonbot | Checkin | |
2009-12-04 09:14 | hudsonbot | Note Added: 0022416 | |
2009-12-10 13:10 | mtaal | Note Added: 0022636 | |
2009-12-10 13:10 | mtaal | Status | resolved => new |
2009-12-10 13:10 | mtaal | Resolution | fixed => open |
2009-12-10 13:51 | iperdomo | Status | new => scheduled |
2009-12-10 18:08 | hgbot | Checkin | |
2009-12-10 18:08 | hgbot | Note Added: 0022658 | |
2009-12-10 18:08 | hgbot | Status | scheduled => resolved |
2009-12-10 18:08 | hgbot | Resolution | open => fixed |
2009-12-10 18:08 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/9897d630fd6809e104faf50c769763b1933c0e63 [^] => http://code.openbravo.com/erp/devel/pi/rev/e82d1b5b692e2d47465162fef91ac6ae143d8acf [^] |
2009-12-10 23:41 | mtaal | Note Added: 0022666 | |
2009-12-10 23:41 | mtaal | Status | resolved => new |
2009-12-10 23:41 | mtaal | Resolution | fixed => open |
2009-12-11 10:22 | iperdomo | Status | new => scheduled |
2009-12-11 12:10 | hgbot | Checkin | |
2009-12-11 12:10 | hgbot | Note Added: 0022698 | |
2009-12-11 12:10 | hgbot | Status | scheduled => resolved |
2009-12-11 12:10 | hgbot | Resolution | open => fixed |
2009-12-11 12:10 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/e82d1b5b692e2d47465162fef91ac6ae143d8acf [^] => http://code.openbravo.com/erp/devel/pi/rev/bc363efd9e77743f15ad98e4a40e3ffa8f570c93 [^] |
2009-12-14 12:21 | sureshbabu | Note Added: 0022745 | |
2009-12-14 12:21 | sureshbabu | Status | resolved => closed |
2009-12-14 12:21 | sureshbabu | Fixed in Version | => 2.50MP10 |
2009-12-15 00:00 | anonymous | sf_bug_id | 0 => 2914440 |
2009-12-15 04:56 | hudsonbot | Checkin | |
2009-12-15 04:56 | hudsonbot | Note Added: 0022782 | |
Notes |
|
(0022149)
|
hgbot
|
2009-11-24 23:08
|
|
|
|
|
|
|
(0022636)
|
mtaal
|
2009-12-10 13:10
|
|
The check also has to be changed in the TestHeartBeat class. Check the usage of the SystemInfo.isEnableHeartBeat in this class, on each place (I think there are 4 or so) the check needs to be changed to also count the num. of processrequests.
Antother remark, maybe it is better to explicitly use an and expression in the ModuleManager.isHeartBeatEnabled() method:
prCriteria.add(Expression.and(Expression.eq(ProcessRequest.PROPERTY_PROCESS, HBProcess),
Expression.eq(ProcessRequest.PROPERTY_CHANNEL, Channel.SCHEDULED.toString())));
Another thing I noticed is that when I unschedule or remove the processrequest then the button in the heartbeat configuration still says 'disable heartbeat'. Maybe a solution is to recreate the processrequest also in that window.
gr. Martin |
|
|
(0022658)
|
hgbot
|
2009-12-10 18:08
|
|
Repository: erp/devel/pi
Changeset: e82d1b5b692e2d47465162fef91ac6ae143d8acf
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Dec 10 18:07:47 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e82d1b5b692e2d47465162fef91ac6ae143d8acf [^]
Fixes issue 11478: Refactored code that checks if HB is enabled
---
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
M src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
M src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
---
|
|
|
(0022666)
|
mtaal
|
2009-12-10 23:41
|
|
I noticed still two things:
First error scenario:
1) I first enable heartbeat
2) then remove the process request
3) then go to module management install module
4) page is shown 'do you want to enable heartbeat'
--> Problem: I have to click twice on the continue button before the wizard continues
Second error scenario:
1) I first enable heartbeat
2) then unschedule the process request
3) then go to module management install module
4) wizard continues without asking to enable heartbeat
5) process request is however not rescheduled
gr. Martin |
|
|
(0022698)
|
hgbot
|
2009-12-11 12:10
|
|
Repository: erp/devel/pi
Changeset: bc363efd9e77743f15ad98e4a40e3ffa8f570c93
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Dec 11 12:10:13 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bc363efd9e77743f15ad98e4a40e3ffa8f570c93 [^]
Fixes issue 11478: Refactored code that checks if HB is enabled
---
M src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
M src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
---
|
|
|
|
Tested, module management window now checks whether heartbeat is enabled or not even if the heartbeat process is unscheduled in process request window |
|
|
|
|