VMware {code} Community
rutvijdhotey
Contributor
Contributor
Jump to solution

Defining Individual Actions for HTML-Based Action Extensions: Action Url exceeding the character limit. How to change the url and send the contents as dataparams?

Hello,

I am invoking an action by defining it in the plugin.xml file.

The action is invoked for a certain number of entities and the the url that is created is as follows:

https://localhost:9443/vsphere-client/views/action/ACTION.html?&actionUid=ACTIONPATH&locale=en_US&we...

This works perfectly for a certain number of targets, but when it exceeds the length of the url max, i get a HTML Header error in virgo log.

I am certain that this happens because we are sending the get request with the url exceeding the limit and i wish to change the url and send data params.

Also how would i change the GET to a POST if i wanted to ?

ty

Reply
0 Kudos
1 Solution

Accepted Solutions
stoevm
VMware Employee
VMware Employee
Jump to solution

Hi rutvijdhotey,

We are aware of this problem, to be correct the problem is that the ActionControllers in the java layer are expecting the parameters as url params, that is why the parameters are not send as post data
(even though we are using post request to trigger actions from the ActionController). I don not think there is much you can do about changing the way data is send and received at the moment.

We are working on solving this issue.

Cheers
--Martin

View solution in original post

Reply
0 Kudos
2 Replies
stoevm
VMware Employee
VMware Employee
Jump to solution

Hi rutvijdhotey,

We are aware of this problem, to be correct the problem is that the ActionControllers in the java layer are expecting the parameters as url params, that is why the parameters are not send as post data
(even though we are using post request to trigger actions from the ActionController). I don not think there is much you can do about changing the way data is send and received at the moment.

We are working on solving this issue.

Cheers
--Martin

Reply
0 Kudos
rutvijdhotey
Contributor
Contributor
Jump to solution

Hi stoevm,

Yes, the problem that you have described is the one that we are facing. Thank you for your prompt update on the issue.

Also can you tell me the difference when a Get is sent(If a get is ever sent) vs when a post is sent?

Thank you,

Rutvij Dhotey.

Reply
0 Kudos