earthenterprise icon indicating copy to clipboard operation
earthenterprise copied to clipboard

Portable files published in GEE Server with a virtual host have incorrect serverUrl

Open tst-ccamp opened this issue 5 years ago • 0 comments

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:

  1. Load a portable Mercator map file
  2. Publish to a non-default virtual host with the absolute URL configured
  3. Go to the URL: http(s)://<FQDN>/<publish point>/query?request=Json&var=geeServerDefs
  4. 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

tst-ccamp avatar Oct 07 '19 19:10 tst-ccamp