Conversation
how to deal with proxy as in silver lining? thanks in advance.
|
Hey there. Thanks for trying out this repo. What are you trying to do exactly? I think you're referring to the SIlverLining main.js where there's a commented out code block with the comment starting 'Adds a prefilter'? It looks like this was code that should have been deleted rather than commented out since it seems to refer to a previous architecture that ran the whole SilverLining client from a java proxy server to get around the cross-domain issues. This was replaced with simply placing the SDK js lib and web application code into the vCD cell itself. |
|
Hi, Seems my ajaxprefilter is not placed in the proper place. |
|
That's great! So just curious: Have you been able to manually post API calls (using a rest client that available from http://www.wiztools.org/) through your proxy and get successful responses? If you're open to it, maybe you could share your proxy code and I could try to set it up between my dev vCD and the client and try to replicate the problem you're seeing? I'm travelling right now but I should be able to get to it later over the week-end. |
|
Yep, POST, PUT through my proxy are fine. See where your fling can be used, a wide use-case of white-labeling VCD web portal (which in my thought vCAC is not suitable for, for now at least ; due to the lack of easy customization). The proxy is in python / django. Maybe it would be better to rely on one in js. Also, as it's for a client developer, I'm pretty sure i can't open source it, even if it's a stupid/simple proxy implemented for the VCD authentication use-case. Nevertheless, I can send it to you in order to ease the troubleshooting of what's not working on the js side. |
|
Couldn't agree more. Wanted to supply a simple proxy that could easily be slipped under the vcloud-js-sdk to remove the need to install directly on the vCD cell. Would provide useful proxy for console access too. Selfishly, I was hoping you might have something you could make public so I didn't have to do it ;) No worries! If you send, obviously I'll only use for debugging. However, the thought of a proxy (using node.js perhaps) is well noted. |
|
I think I catched an issue with the lib I use in my proxy function (httplib2) regarding the returned xml payload (payload is truncated). The proxy for console access will be probably more difficult to address. |
|
Indeed, it was a problem in my proxy. POST requests work now. BTW I face another issue, when clicking in Library button, I get disconnected. (I tested w/ silverlining and will test with vcloud-client tomorrow). |
|
Thank you! Will take a look. Let me know what you find out with the Library button. |
|
this nodejs http proxy can probably do the trick : its websocket support will even permit to have html5 vm console access :-) |
|
Hi Alister, After having looked at both WSX and VCD consoleproxy sources (using java Regarding proxying this websocket connection, I think it's not something Anyway, have you find time to look at the node.js proxy module I suggested? BR On Thu, Mar 7, 2013 at 8:47 PM, Alister Lewis-Bowen <
|
|
Hi David. Alas, I have not. I'm sorry. This may take a while given my current workload. |
how to deal with proxy as in silver lining?
thanks in advance.