S-Okuyama - 2005-08-16

Logged In: YES
user_id=1329842

I have the problem that it looks alike, too.

Valid InstanceName can't be get with
CIMInstance.getObjectPath() when PropertyFilter is done
when GetInstance/EnumerateInstances Operation is execute.

When EnumerateInstances operation is execute, the
following is XML which was returned from the Server side and
which came.
The operation execute
----------------------------------------------------
: EnumerateInstances
: Class name : CIM_ComputerSystem
: Deep : true
: LocalOnly : false
: IncludeQualifier : false
: IncludeClassOrigin : false
: PropertyList : "Name"
----------------------------------------------------

Returned CIM-XML
----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<CIM DTDVERSION="2.0"
CIMVERSION="2.0"><MESSAGE
ID="2005:7:16:2:1:13:45:1" PROTOCOLVERSION="1.0">
<SIMPLERSP><IMETHODRESPONSE
NAME="EnumerateInstances">
<IRETURNVALUE><VALUE.NAMEDINSTANCE>
<INSTANCENAME CLASSNAME="CIM_ComputerSystem">
<KEYBINDING NAME="CreationClassName">
<KEYVALUE VALUETYPE="string"
TYPE="string">CIM_ComputerSystem</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="Name">
<KEYVALUE VALUETYPE="string"
TYPE="string">172.16.4.96</KEYVALUE>
</KEYBINDING>
</INSTANCENAME>
<INSTANCE
CLASSNAME="CIM_ComputerSystem"><PROPERTY
NAME="Name"
TYPE="string"><VALUE>172.16.4.96</VALUE></PROPERT
Y></INSTANCE>
</VALUE.NAMEDINSTANCE></IRETURNVALUE>
</IMETHODRESPONSE></SIMPLERSP>
</MESSAGE></CIM>
----------------------------------------------------

It becomes the following CIMInstance on the Client side
which this XML was taken as.
----------------------------------------------------
CIMInstance:
instance of CIM_ComputerSystem {
Name = "172.16.4.96";

};

CIMObjectPath in CIMInstance:
//172.16.4.96/root/cimv2:CIM_ComputerSystem.Name="172.1
6.4.96"
(CreationClassName which is another Key property doesn't
exist. )
----------------------------------------------------

Probably, I think that XMLParser.java#getCIMInstance that
CIMInstance is Created from XML is a cause.

Is this a bug?
When modification done in the case, if it is bug?