-
Notifications
You must be signed in to change notification settings - Fork 175
RbVmomi deserialization fails on managed object type ContentLibrary
#205
Comments
Sorry, I haven't gotten to this yet. The content library APIs are not available from SOAP. That's why it isn't registered as a ManagedEntity. I'll see what I can do to have it go around this. |
No problem @jrgarcia If you know how you'd like to handle it I can take a crack at fixing it. I could see adding a "stub" definition to the vmodl.wsdl or more generally changing the deserializer to create an object of the base class type for that property if it can't find the class in the vmodl. Differentiating between an actual error and a case like this would be tricky though, but I don't know how many other cases like this there might be (where an internal definition "leaks" out over the public API). This is mostly just annoying for us because it causes our |
Hey @jrgarcia! I see you're no longer with VMware, congrats on the new job! Best of luck. |
Thanks, @agrare! Unfortunately, I do not know who will be working on this going forward. I'll see if I can find an answer for you, but as I have no access to anything internal to VMware anymore, I'm not sure I'll be able to get an answer too quickly. |
Describe the bug
Running a simple WaitForUpdates event catcher (watching latestPage from the eventManager) [ref] and observed an exception when a scheduled "Sync Library" task ran. When we caught this event an exception was raised by deserialization because it couldn't find the
ContentLibrary
type. Further investigation shows that there was a task with anentity
ofManagedObjectReference:ContentLibrary clib-2895
To Reproduce
Steps to reproduce the behavior:
vim.serviceContent.taskManager.recentTask.first.info
Expected behavior
Given that
ContentLibrary
isn't a registeredManagedEntity
in the Managed Object Types I expect this is one of those special types that has to be merged into the vmodl.dbScreenshots
The task in the vSphere client:
TaskInfo from the MOB:
Platform:
The text was updated successfully, but these errors were encountered: