Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
From the dev list:
Attached is a patch contribution against 1.0.1-rc1 which modifies PortalURL so that is it not tied to the single host specified in a properties file.
Previously it constructed URLs based on the host.name property and the context root of the portal. However, if the user forgot to change the name from localhost or if the server supported multiple vhosts, then the URLs generated would be incorrect.
Instead, this patch maps the portal servlet twice, once with a security constraint, once without. The implementation of PortalURL then generates the URL with the appropriate mapping for secure or insecure mode but without specification of host, credential or port number parts (e.g. "/pluto/portal/...")