Hi,
When downloading the plugin, will the web client fallback to HTTP if HTTPS doesnt work, provided I have added allowHttp=true in webclient.properties?
Say I have registered my plugin with https://127.0.0.1/abc.zip. Now when user logs into web client, it will try to download the plugin from this URL. if for some reason, the download fails, will it automatically try http://127.0.0.1/abc.zip?
The reason is that I noticied the below messages in the log. It reported that allowHttp=true is not set when the URL is actually a HTTPS URL (may be a thumbprint issue). But after adding allowHttp=true in webclient.properties and restarting the web client the plugin got downloaded successfully.
[2012-12-11 11:20:11.090] INFO [INFO ] vc-service-pool-3 4C7C949673852C4FCBBA4733D4BD6787 com.vmware.vise.vim.extension.VcExtensionManager start writePackageToFile : com.ocsc.us.vcplugin
[2012-12-11 11:20:11.090] INFO [INFO ] vc-service-pool-3 4C7C949673852C4FCBBA4733D4BD6787 com.vmware.vise.vim.extension.VcExtensionManager Downloading plugin package from https://10.91.18.249/us/plugin-0.9.1.zip
[2012-12-11 11:20:11.090] ERROR [ERROR] vc-service-pool-3 4C7C949673852C4FCBBA4733D4BD6787 com.vmware.vise.vim.extension.VcExtensionManager The plugin package download was blocked because the URL isnot secure. To allow http URLs add allowHttp=true to webclient.properties
[2012-12-11 11:20:11.090] INFO [INFO ] vc-service-pool-3 4C7C949673852C4FCBBA4733D4BD6787 com.vmware.vise.vim.extension.VcExtensionManager end writePackageToFile : com.ocsc.us.vcplugin
[2012-12-11 11:20:11.090] ERROR [ERROR] vc-service-pool-3 4C7C949673852C4FCBBA4733D4BD6787 com.vmware.vise.vim.extension.VcExtensionManager Error unzipping https://10.91.18.249/us/plugin-0.9.1.zip java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
Thread moved to vCenter Server community
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I dont think this question will be answered in vCenter community. This question is related to the download of the plugins by the web client. So moving it back to vsphere web client sdk community.
> Say I have registered my plugin with https://127.0.0.1/abc.zip. Now when user logs into web client, it will try to download the plugin from this URL. if for some reason, the download fails, will it automatically try http://127.0.0.1/abc.zip?
No, you must explicitely allow http URL with the flag in question in webclient.properties. This is not recommended for a production environment, you should provide the correct Thumbprint information in the <server> extension info (see the SDK Tutorial for more details)