From: Chris B. <buc...@us...> - 2011-03-30 19:03:55
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SFCB - Small Footprint CIM Broker". The branch, master has been updated via f39cf6391b093ba6d0c997828b803baa5adc6955 (commit) from 8b9671bfa82879b56f596b5ed4e6c1b8a721ff73 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f39cf6391b093ba6d0c997828b803baa5adc6955 Author: buccella <buc...@li...> Date: Wed Mar 30 15:03:39 2011 -0400 [ 3038078 ] Can create indication filters and destinations w/o key props ----------------------------------------------------------------------- Summary of changes: diff --git a/ChangeLog b/ChangeLog index cfc2946..7a27fbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-30 Chris Buccella <buc...@li...> + + * interopProvider.c, indCIMXMLHandler.c: + [ 3038078 ] Can create indication filters and destinations w/o key props + 2011-03-22 Narasimha Sharoff <nsh...@us...> * cimcClientSfcbLocal.c diff --git a/NEWS b/NEWS index f307f99..72b50cd 100644 --- a/NEWS +++ b/NEWS @@ -67,6 +67,7 @@ Bugs fixed: - 3175770 execQuery returns multiple instances of same object - 3203290 Basic Auth Should Consider Expired Passwords - 3202420 CDATA value in a string property is improperly XML escaped +- 3038078 Can create indication filters and destinations w/o key props Changes in 1.3.10 ================= diff --git a/indCIMXMLHandler.c b/indCIMXMLHandler.c index eff5659..7dcf882 100644 --- a/indCIMXMLHandler.c +++ b/indCIMXMLHandler.c @@ -279,6 +279,21 @@ IndCIMXMLHandlerCreateInstance(CMPIInstanceMI * mi, CMPIObjectPath* copLocal = CMClone(cop, NULL); memLinkObjectPath(copLocal); + CMPIString *ccn = ciLocal->ft->getProperty(ciLocal, "creationclassname", + &st).value.string; + if (CMIsNullObject(ccn)) { + setStatus(&st, CMPI_RC_ERR_FAILED, + "CreationClassName property not found"); + _SFCB_RETURN(st); + } + CMPIString *sccn = ciLocal->ft->getProperty(ciLocal, "systemcreationclassname", + &st).value.string; + if (CMIsNullObject(sccn)) { + setStatus(&st, CMPI_RC_ERR_FAILED, + "SystemCreationClassName property not found"); + _SFCB_RETURN(st); + } + CMPIString *sysname=ciLocal->ft->getProperty(ciLocal,"SystemName",&st).value.string; if (sysname == NULL || sysname->hdl == NULL) { char hostName[512]; diff --git a/interopProvider.c b/interopProvider.c index 2f7f648..438d481 100644 --- a/interopProvider.c +++ b/interopProvider.c @@ -948,6 +948,23 @@ InteropProviderCreateInstance(CMPIInstanceMI * mi, st = processSubscription(_broker, ctx, ciLocal, copLocal); } else if (isa(nss, cns, "cim_indicationfilter")) { + + CMPIString *ccn = ciLocal->ft->getProperty(ciLocal, "creationclassname", + &st).value.string; + if (CMIsNullObject(ccn)) { + setStatus(&st, CMPI_RC_ERR_FAILED, + "CreationClassName property not found"); + _SFCB_RETURN(st); + } + CMPIString *sccn = ciLocal->ft->getProperty(ciLocal, "systemcreationclassname", + &st).value.string; + if (CMIsNullObject(sccn)) { + setStatus(&st, CMPI_RC_ERR_FAILED, + "SystemCreationClassName property not found"); + _SFCB_RETURN(st); + } + + QLStatement *qs = NULL; int rc, i, hooks/post-receive -- SFCB - Small Footprint CIM Broker |