VMware {code} Community
SreeSindhuSruth
Enthusiast
Enthusiast

custom object id is not showing up in 6.7 vCenter

Hi,

We have plugin upgraded from 6.5u1 sdk  to 6.7 sdk fixing all the virgo and spring jar updates.

Now when we deployed the plugin in 6.7 vc,

click on shortcut and click on our custom object which will navigate to a custom page.

In that custom page, we are not able to see the object id which is next to the global actions.

Attached is the screenshot.

Please suggest on fixing this as user can't work  on global actions for that custom object.

Tags (2)
0 Kudos
8 Replies
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi,

 

We will need more information in order to investigate the problem, such as:

- is the same plug-in working on 6.5u1?

- are you using the vShere Client extensibility to create custom objects, or you are following the HTML plug-in sample (included in 6.7 SDK)?

- are there any errors in the browser console?

- are there any errors in the vsphere_client_virgo.log?

- can you try to reproduce the issue using some of the sample plug-ins from 6.5U1 SDK (ChassisA/ChassisB)

 

Thank you,

Denis

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

Hi Denis,

The same plugin working fine in 6.5u1.

We are using extension points for custom objects. We have multiple custom objects , so rewriting it as in 6.7 sdk html sample will take some time.

We are not seeing any errors in browser or in virgo logs.

We will get back by deploying the sample plugins in 6.7vc.

0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Thank you for providing the information,

 

Just to give you a hint of how to modify the ChassisA sample in order to work on 6.7:

- in "plugin.xml" -> remove the ".html" suffix from the action urls which make calls to the backend (for example "<actionUrl>/vsphere-client/chassisa/rest/actions.html</actionUrl>" becomes "<actionUrl>/vsphere-client/chassisa/rest/actions</actionUrl>")

- in "MANIFEST.MF" (in the .war) -> remove org.springframework.web.servlet.view;version="3.1.4" and org.springframework.web.servlet.view.json;version="3.1.4"

- in "bundle-context.xml" -> remove <bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">

- in "editChassisAction.html" and "editChassisDialog.html" -> replace "actions.html" with just "actions"

- in "ActionsController.java" -> replace the endpoint "/actions.html" with "/actions"

 

Best Regards,

Denis

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

Denis,

we are not able to reproduce the issue for chasss B sample.

In our plugin we are using angular 2 for UI and chassis B is js.

We are facing the issue with our plugin in 6.5u2 and 6.7 but it is working fine in 6.5u1.

Please let us know where we did go wrong.

0 Kudos
_vladi_
VMware Employee
VMware Employee

Hi,

Please provide more information like the plugin.xml extension and any pieces of the vsphere_client_virgo.log relevant to your plugin (obfuscate any sensitive information).

This would help troubleshooting as with the current info it is completely unclear what goes wrong.

Thanks.

Cheers,

Vladi

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

Hi Vladi,

we have shared our plugin.xml and logs with DCPN, they responded saying there is a PR 2152067 created for the same.

Please let us know , if we have to share our plugin.xml with you or is it the same as DCPN.

0 Kudos
_vladi_
VMware Employee
VMware Employee

Cool, thanks. Let's follow up through DCPN.

Cheers,

Vladi

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

PR is a defect logged for the vc build or is it a different one?

0 Kudos