-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different results when querying from Windows and Linux. #415
Comments
Eric, could you please investigate this? |
I looked into this. The XYZ_Dog provider appears to add a test case that doesn't exist in OMI. The XYZ_Dog sample provider returns an empty array. The array is not NULL. It is deliberately an array with zero items. The omicli demonstrates that the omiserver is handling this correctly. It appears that whatever additional serialization is occurring because of the --auth parameter is handling empty arrays differently. I am passing to Bruce because he implemented the auth layer. |
Jumping, please investigate this. If you need authentication help, please contact Bruce. |
Investigating. |
Jumping will further investigate the issue and update the findings accordingly. |
we tried c provider https://github.com/Microsoft/omi/blob/master/Unix/samples/Providers/Dog/schema.mof and shows same result:
just want to double check it is really on omi, and I will continue to investigate the |
For this question, the array is just empty, we will query and get different results by following ways.
ENV
Build
\OSTCDATA\Team\v-zhenpy\providers\OMIScriptProvider-1.1.1-1.ssl_.x64.rpm
Repro Steps
root@py64-cent7-t2 # cat /etc/opt/omi/conf/omiregister/root-cimv2/xyz_dog.reg
# omireg xyz_dog
INTERPRETER=python2.7
STARTUP=client.py
LIBRARY=xyz_dog
CLASS=XYZ_Dog
root@py64-cent7-t2 # /opt/omi/bin/omicli ei root/cimv2 XYZ_Dog
instance of XYZ_Dog
{
[Key] Key=1001
Array2={}
Array3={10, 20, 30}
}
root@py64-cent7-t2 # /opt/omi/bin/omicli ei -u root -p *** --auth Basic --hostname py64-cent7-t2 root/cimv2 XYZ_Dog --encryption none --port 5985
instance of XYZ_Dog
{
Key=1001
Array3={10, 20, 30}
}
PS C:\Windows\system32> winrm enumerate http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/XYZ_Dog?__cimnamespace=root/cimv2 -r:http://py64-cent7-t2:5985 -auth:Basic -u:root -p:*** -unencrypted -encoding:utf-8
XYZ_Dog
Key = 1001
Array1 = null
Array3 = 10, 20, 30
Expectly: The results should be same.
Actual: The results are different by above ways.
The text was updated successfully, but these errors were encountered: