Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2610 Association provider return values

Function
open
nobody
None
gather
5
2013-04-09
2013-02-11
No

I've noticed that after installing the gather providers, that some associations in the SFCB test suite no longer work. I believe the provider is returning a bad RC in the case where no associations are found.

While I don't think it's very clear in the CMPI spec, the association calls should only be returning an empty enumeration when there are no associations found. SFCB makes the association call to several providers, and will stop if one fails.

Discussion

  • Dave Heller
    Dave Heller
    2013-04-09

    Hmm, it seems the presence of the gather providers will cause the failure of this particular query in test/xmltest:

    [root@mysys xmltest]# wbemcat CHS_AI_IS.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <CIM CIMVERSION="2.0" DTDVERSION="2.0">
    <MESSAGE ID="4711" PROTOCOLVERSION="1.0">
    <SIMPLERSP>
    <IMETHODRESPONSE NAME="Associators">
    <ERROR CODE="6" DESCRIPTION="The requested object could not be found"/>
    </IMETHODRESPONSE>
    </SIMPLERSP>
    </MESSAGE>
    </CIM>

    It looks like the presence of the OSBase_MetricElementConformsToProfileProvider is causing the failure, although the provider is does not seem to be returning a CMPI_RC_ERR_FAILED as was the case in sfcb-tix #31, so it's a slightly different problem. But uninstalling the gather providers makes the problem go away.

     
  • Dave Heller
    Dave Heller
    2013-04-09

    Oops I forgot I can't paste XML into the new tracker. failing case attached in txt file.

     
    Attachments
  • Dave Heller
    Dave Heller
    2013-04-09

    Ah. stupid bug tracker tricks from Dave B: Must indent XML by 4 or more spaces. Thanks!

    [root@mysys xmltest]# wbemcat CHS_AI_IS.xml 
    <?xml version="1.0" encoding="utf-8" ?>
    <CIM CIMVERSION="2.0" DTDVERSION="2.0">
    <MESSAGE ID="4711" PROTOCOLVERSION="1.0">
    <SIMPLERSP>
    <IMETHODRESPONSE NAME="Associators">
    <ERROR CODE="6" DESCRIPTION="The requested object could not be found"/>
    </IMETHODRESPONSE>
    </SIMPLERSP>
    </MESSAGE>
    </CIM>
    

    now isn't that pretty?