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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011459
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersmajorhave not tried2009-11-23 12:102009-12-12 00:00
ReportermarvintmView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision098732b07ee1
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

0011459: If an entry is added in Available Updates in Butler, when heartbeat requests an update there is an error because of UUIDs

DescriptionIf 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).
Steps To Reproduce- 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.
Proposed SolutionAt least that method needs to be changed in Butler.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0011449 closedshuehner Alert_data.xsql does not work with postgresql 8.3 (save method) 
related to defect 0011515 closedshuehner Using the Virtual Appliances, I cannot activate Heartbeat because an incorrect os.version processing 

-  Notes
(0022181)
shuehner (administrator)
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 (developer)
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 (reporter)
2009-12-11 12:33

Tested on pi @ rev bc363efd9e77

- Issue History
Date Modified Username Field Change
2009-11-23 12:10 marvintm New Issue
2009-11-23 12:10 marvintm Assigned To => rafaroda
2009-11-25 12:34 shuehner Issue Monitored: shuehner
2009-11-25 12:35 shuehner Relationship added related to 0011449
2009-11-26 13:27 shuehner Relationship added related to 0011515
2009-11-26 13:29 shuehner Note Added: 0022181
2009-11-26 18:24 shuehner Assigned To rafaroda => shuehner
2009-11-27 17:37 hgbot Checkin
2009-11-27 17:37 hgbot Note Added: 0022236
2009-11-27 17:37 hgbot Status new => resolved
2009-11-27 17:37 hgbot Resolution open => fixed
2009-11-27 17:37 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.butler/rev/098732b07ee157494c29992bc6ea00be07c265f9 [^]
2009-12-11 12:33 iperdomo Note Added: 0022699
2009-12-11 12:33 iperdomo Status resolved => closed
2009-12-12 00:00 anonymous sf_bug_id 0 => 2912999


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker