Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1314 wbemcli: Fails when supplied with Arrays of property values

Performance
open
5
2008-12-11
2008-08-18
Ashoka Rao
No

The wbemcli command does not work as expected when an Array of property values are supplied separated by commas.

Error Displayed:
*
* wbemcli: Http Exception: HTTP response code said error
*

When the attribute is of type 'string Array', i.e

string TestStr[] ,
and the values are supplied as comma seperated strings, the command execution fails.

Observation:

The XML generated by the wbemcli command indicates that the Property 'TestStr' is treated as a String and not as a StringArray.

<PROPERTY NAME="TestStr" TYPE="string"><VALUE.ARRAY><VALUE>123abc</VALUE></VALUE.ARRAY></PROPERTY></INSTANCE></IPARAMVALUE>

This should have been treated as

<PROPERTY.ARRAY NAME="TestStr" TYPE="string"><VALUE.ARRAY><VALUE>123abc</VALUE></VALUE.ARRAY></PROPERTY.ARRAY></INSTANCE></IPARAMVALUE>

Discussion

  • Tyrel Datwyler
    Tyrel Datwyler
    2008-12-11

    • summary: Fails when supplied with Arrays of property values --> wbemcli: Fails when supplied with Arrays of property values