From: <jt...@hy...> - 2007-03-15 20:42:47
|
Author: jtravis Date: 2007-03-15 12:42:44 -0800 (Thu, 15 Mar 2007) New Revision: 3771 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3771 Modified: trunk/installer/data/db-upgrade.xml trunk/src/org/hyperic/hq/bizapp/server/session/UpdateBossEJBImpl.java Log: HHQ-751. Fix update status Modified: trunk/installer/data/db-upgrade.xml =================================================================== --- trunk/installer/data/db-upgrade.xml 2007-03-15 17:52:50 UTC (rev 3770) +++ trunk/installer/data/db-upgrade.xml 2007-03-15 20:42:44 UTC (rev 3771) @@ -4932,7 +4932,12 @@ <schema-alterColumn table="EAM_ACTION" column="DELETED" nullable="NOT NULL"/> </schemaSpec> - + + <schemaSpec version="3.21"> + <schema-alterColumn table="EAM_UPDATE_STATUS" column="REPORT" + nullable="NULL"/> + </schemaSpec> + </dbupgrade> </target> Modified: trunk/src/org/hyperic/hq/bizapp/server/session/UpdateBossEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/server/session/UpdateBossEJBImpl.java 2007-03-15 17:52:50 UTC (rev 3770) +++ trunk/src/org/hyperic/hq/bizapp/server/session/UpdateBossEJBImpl.java 2007-03-15 20:42:44 UTC (rev 3771) @@ -213,7 +213,7 @@ response = post.getResponseBodyAsString(); } catch(Exception e) { - _log.warn("Unable to get updates", e); + _log.debug("Unable to get updates", e); return; } finally { post.releaseConnection(); @@ -231,6 +231,11 @@ return; } + if (statusCode != 200) { + _log.debug("Bad status code returned: " + statusCode); + return; + } + if (curStatus.getMode().equals(UpdateStatusMode.NONE)) return; |