Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Will web client fallback to HTTP if HTTPS doesnt work for plugin download?

$
0
0

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)


Viewing all articles
Browse latest Browse all 2218

Trending Articles