earthenterprise
earthenterprise copied to clipboard
Portable files published in GEE Server with a virtual host have incorrect serverUrl
Describe the bug
If a portable map is published in GEE Server with a virtual host besides the defaults configured, it will output as /<database name>
, but it should output as an absolute URL due to the virtual hosts settings, e.g. https://<FQDN>/<publish point>
.
To Reproduce
Steps to reproduce the behavior:
- Load a portable Mercator map file
- Publish to a non-default virtual host with the absolute URL configured
- Go to the URL:
http(s)://<FQDN>/<publish point>/query?request=Json&var=geeServerDefs
- The serverUrl truncates the FQDN
Expected behavior
The serverUrl variable in step 4 has the URL with the absolute FQDN set in the virtual host