Foren

RE: Download Process for Purchased Plugins Does Not Complete

thumbnail
Stew Sutton, geändert vor 11 Jahren.

Download Process for Purchased Plugins Does Not Complete

New Member Beiträge: 5 Beitrittsdatum: 06.11.12 Neueste Beiträge
I have been setting up a new installation of Liferay CE and everything seems to be working quite well with the exception of the download buttons that appear to the right of the purchase products listing within the Marketplace control panel on the portal. Purchase was successful, however after clicking the download button it will stay there forever in the "Please Wait..." mode and the download never seems to complete. I'm thinking it might be a proxy issue since the portal is behind a corporate firewall. I'm not seeing where to configure proxy settings for plugin installations. I successfully got through the proxy to establish the credentials and purchase (or acquire free plugins), however, I am unable to determine if the non-completing download is due to network config or some internal portal configuration. Any suggestions?

Thanks,

-Stew
thumbnail
James Falkner, geändert vor 11 Jahren.

RE: Download Process for Purchased Plugins Does Not Complete

Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
Stew Sutton:
I have been setting up a new installation of Liferay CE and everything seems to be working quite well with the exception of the download buttons that appear to the right of the purchase products listing within the Marketplace control panel on the portal. Purchase was successful, however after clicking the download button it will stay there forever in the "Please Wait..." mode and the download never seems to complete. I'm thinking it might be a proxy issue since the portal is behind a corporate firewall. I'm not seeing where to configure proxy settings for plugin installations. I successfully got through the proxy to establish the credentials and purchase (or acquire free plugins), however, I am unable to determine if the non-completing download is due to network config or some internal portal configuration. Any suggestions?

Thanks,

-Stew



The 'purchase' happens through an iframe (i.e. on your client side) so it works if your browser works.

The download happens on the server side so won't work if you are behind a firewall requiring a proxy.

To configure your proxy, you have to add system-ext.properties in your classpath(ROOT/web-inf/classes)


    #
    # Set the location of the HTTP proxy that the portal will use to fetch
    # external content.
    #
    # Set http.nonProxyHosts for hosts that will not be proxied. This is useful
    # for proxied environments where you need direct access to internal servers.
    # This should follow the same semantics as the java.net package.
    #
    #http.proxyHost=192.168.0.200
    #http.proxyPort=4480
    #http.nonProxyHosts=192.168.0.250
thumbnail
Stew Sutton, geändert vor 11 Jahren.

RE: Download Process for Purchased Plugins Does Not Complete

New Member Beiträge: 5 Beitrittsdatum: 06.11.12 Neueste Beiträge
James Falkner:
Stew Sutton:
I have been setting up a new installation of Liferay CE and everything seems to be working quite well with the exception of the download buttons that appear to the right of the purchase products listing within the Marketplace control panel on the portal. Purchase was successful, however after clicking the download button it will stay there forever in the "Please Wait..." mode and the download never seems to complete. I'm thinking it might be a proxy issue since the portal is behind a corporate firewall. I'm not seeing where to configure proxy settings for plugin installations. I successfully got through the proxy to establish the credentials and purchase (or acquire free plugins), however, I am unable to determine if the non-completing download is due to network config or some internal portal configuration. Any suggestions?

Thanks,

-Stew



The 'purchase' happens through an iframe (i.e. on your client side) so it works if your browser works.

The download happens on the server side so won't work if you are behind a firewall requiring a proxy.

To configure your proxy, you have to add system-ext.properties in your classpath(ROOT/web-inf/classes)


    #
    # Set the location of the HTTP proxy that the portal will use to fetch
    # external content.
    #
    # Set http.nonProxyHosts for hosts that will not be proxied. This is useful
    # for proxied environments where you need direct access to internal servers.
    # This should follow the same semantics as the java.net package.
    #
    #http.proxyHost=192.168.0.200
    #http.proxyPort=4480
    #http.nonProxyHosts=192.168.0.250



Those were good suggestions James. Thank you. I have done that and a bit more (after looking around for references on syntax).

Here is the config that I did that is being successfully read into the system properties. I edited the system-ext.properties file and for me that file is located in the following path: /opt/liferay/apache-tomcat/webapps/liferay/WEB-INF/classes

portal.instance.http.port=1234
http.proxy.Set=true
http.proxyHost=Name_of_Our_Proxy
http.proxyPort=1234
http.proxyUser=User_Name_For_Proxy
http.proxyPass=Password_For_User_To_Proxy

I added the line to make reference to the portal.instance.http.port since that was reference in the Liferay documentation (using the same port number as the http.proxyPort reference a few lines later.

After making these changes, I verified the system properties are properly read into the portal SYSTEM PROPERTIES area within the Server Admin area of the control panel. Everything looks OK there.

However even after making all these changes/updates the DOWNLOAD still will not complete.

My question now is WHICH LOG FILE should I be looking at to give me some insight into what is happening (or rather NOT HAPPENING) when I attempt to execute a download through the proxy?

My guess is that system settings are still not quite correct. The documentation reference to Portal Context was taken from here:
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/portal-conte-1

And while that reference made a suggestion to portal.instance.http.port, I am not sure if there are other "portal.instance" references that should be configured in the system-ext.properties file.

Any insight would be greatly appreciated.

Thank you!

-Stew
thumbnail
Stew Sutton, geändert vor 11 Jahren.

RE: Download Process for Purchased Plugins Does Not Complete

New Member Beiträge: 5 Beitrittsdatum: 06.11.12 Neueste Beiträge
After inspecting various log files including localhost, catalina, and liferay..., nothing jumps out as an indicator that the system properties are misconfigured in a way that would prevent a corporate "behind the firewall" instance of Liferay to reach out through its proxy with a username/password combination to successfully download a "purchased product" from the MARKETPLACE tab within the Control Panel. Anybody with a clue to this mystery - or where to look beyond "logs" to see what is happening when the "download" button is clicked but does not successfully resolve in transfer of data into the Liveray environment...

Thanks! -Stew
thumbnail
James Falkner, geändert vor 11 Jahren.

RE: Download Process for Purchased Plugins Does Not Complete

Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
Stew Sutton:
After inspecting various log files including localhost, catalina, and liferay..., nothing jumps out as an indicator that the system properties are misconfigured in a way that would prevent a corporate "behind the firewall" instance of Liferay to reach out through its proxy with a username/password combination to successfully download a "purchased product" from the MARKETPLACE tab within the Control Panel. Anybody with a clue to this mystery - or where to look beyond "logs" to see what is happening when the "download" button is clicked but does not successfully resolve in transfer of data into the Liveray environment...

Thanks! -Stew


Ok I tested this and it works fine for me - but my proxy does not require a username/password. I think the problem is that the Marketplace portlet directly uses the java.net.URL APIs (which do not support setting username/password via system properties like http.proxyUser and http.proxyPass). I think the Marketplace portlet should instead use the HttpUtil classes (which in turn use the Apache HttpClient embedded in Liferay). Can you file a ticket at issues.liferay.com to get this resolved?

The code that downloads the Marketplace plugins when you click 'Download' is located here. It needs to be changed to use different code, such as the code in the RSS portlet.