Menu

#111 ManagedEntity getName returns string with URL encoded data

2.1
open
Steve
API (125)
3
2010-12-07
2010-12-03
No

Hi and thanks in advance for helping.

For the ManagedEntity method getName, it method returns a string with URL encoded data. The data received should be decoded before getting returned (for cases other than just getName() as well).

Example:
I have an entity that is a Virtual Machine within Virtual Infrastructure. If the name of the VM is "test/name\here" the result that I get from myEntity.getName() is "test%2Fname%5Chere".

I have version 2.1 Beta of vijava.jar.

Could you please update this fix in the next release you are able to do.

Thank you very much

Discussion

  • Steve

    Steve - 2010-12-07

    Good point. Let me see how to fix it. You can work around this by decoding yourself.

    Steve (http://www.doublecloud.org)

     
  • Steve

    Steve - 2010-12-07
    • priority: 5 --> 3
     
  • Anonymous

    Anonymous - 2011-01-07

    I'll just point out this is a feature of VMware's API, not Steve's proxies:
    http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ManagedEntity.html#name

    I rely heavily on the VMware documentation, so I would prefer the proxies not try to "improve" the API. Perhaps the proxy could include an extra method that decodes the name, though?