Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011459Openbravo ERPZ. Otherspublic2009-11-23 12:102009-12-12 00:00
marvintm 
shuehner 
normalmajorhave not tried
closedfixed 
5
 
 
Core
No
0011459: If an entry is added in Available Updates in Butler, when heartbeat requests an update there is an error because of UUIDs
If an entry is added in Available Updates in Butler, for a component (ex. Java), and then an Openbravo instance requests the available updates, there is an exception in Butler, because it's trying to get a Long from the UUID.

The getAvailableUpdates() method in class org.openbravo.butler.heartbeat is wrong, because of this line:

long id = Long.valueOf(datum.adAvailableUpdateId);

(line 186).
- Add an entry in Available Updates window in butler for a component different from Openbravo (ex. Java).

- In an Openbravo instance, disable and enable heartbeat again. This will trigger a request that will fail. Check tomcat (catalina.out) log in Butler server to see the exception.
At least that method needs to be changed in Butler.
No tags attached.
related to defect 0011449 closed shuehner Alert_data.xsql does not work with postgresql 8.3 (save method) 
related to defect 0011515 closed shuehner Using the Virtual Appliances, I cannot activate Heartbeat because an incorrect os.version processing 
Issue History
2009-11-23 12:10marvintmNew Issue
2009-11-23 12:10marvintmAssigned To => rafaroda
2009-11-25 12:34shuehnerIssue Monitored: shuehner
2009-11-25 12:35shuehnerRelationship addedrelated to 0011449
2009-11-26 13:27shuehnerRelationship addedrelated to 0011515
2009-11-26 13:29shuehnerNote Added: 0022181
2009-11-26 18:24shuehnerAssigned Torafaroda => shuehner
2009-11-27 17:37hgbotCheckin
2009-11-27 17:37hgbotNote Added: 0022236
2009-11-27 17:37hgbotStatusnew => resolved
2009-11-27 17:37hgbotResolutionopen => fixed
2009-11-27 17:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.butler/rev/098732b07ee157494c29992bc6ea00be07c265f9 [^]
2009-12-11 12:33iperdomoNote Added: 0022699
2009-12-11 12:33iperdomoStatusresolved => closed
2009-12-12 00:00anonymoussf_bug_id0 => 2912999

Notes
(0022181)
shuehner   
2009-11-26 13:29   
Not only this single Long.valueOf needs to be fixed, the complete Component.java uses numeric id's which doesn't work with uuids.
(0022236)
hgbot   
2009-11-27 17:37   
Repository: erp/pmods/org.openbravo.butler
Changeset: 098732b07ee157494c29992bc6ea00be07c265f9
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri Nov 27 17:36:44 2009 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.butler/rev/098732b07ee157494c29992bc6ea00be07c265f9 [^]

Fixed 11515, Fixed 11459: Fix incoming heartbeat and available updates
- Fix parsing code for incoming os.version
- Convert 'available update notification' code to works with 2.50 (UUIDs)
- add junit testcase for 11515 issue

---
M src-test/org/openbravo/butler/heartbeat/test/HeartbeatTest.java
M src/org/openbravo/butler/hearbeat/Component.java
M src/org/openbravo/butler/hearbeat/HeartbeatServlet.java
M src/org/openbravo/butler/hearbeat/UpdateService.java
---
(0022699)
iperdomo   
2009-12-11 12:33   
Tested on pi @ rev bc363efd9e77