WebGIS Discussions

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 40
Registered: ‎02-24-2021
Accepted Solution

WMPS Legend Icons uses http instead of https

Same issue as WMPS Legend Icons Load Path , but solution does not seem to work (or I'm not paying attention to something).

WebMap 2020 update 1 (16.6.1 build 45)

 

  • Geospatial Portal running under https
  • WMPS running under https (have configured portal and WMPS to enable web publisher services under https)
  • Have set AdminConsole> System Settings> Miscellaneous> Root URL to https://myaddress
    RootURL.png

  • Have set AdminConsole>Hostname aliases
    hostnameAlias.png
  • Deleted C:\Program Files\Common Files\Hexagon\Services\Instances\WMPSService\cache content
  • Cleared browser cache
  • Rebooted server (make sure everything restarted)
  • Launched Geospatial Portal, waited for WMPS cache to rebuild

i. Legend icons display, but in developer tools observe

Mixed Content: The page at 'https://server.domain.local/GeospatialPortal/' was loaded over HTTPS, but requested an insecure element 'http://server.domain.local/WMPSService/cache/WMPSService/1061.png'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

i.e. its making a http request, edge simply uses https anyway

developerToolsMessage.png

ii. Perform print (using print service, not local service)

Legend icons are missing from print.

Using phantomjs for print engine.

(This is core problem)

 

iii. Checked the WMPS service capabilities doco

Observed the URLs to the legend icons use http, not https

capabilities-doco-http.png

Any ideas what I missed?

Technical Evangelist
Posts: 474
Registered: ‎02-04-2016

Re: WMPS Legend Icons uses http instead of https

Hi sfhdc,

 

Please see the following for HTTPS printservice:

https://community.hexagongeospatial.com/t5/WebGIS-Discussions/Portal-Print-Service-with-SSL/m-p/1841...

 

I need to do more testing on https WMPS legend icon path...

 

You could try replacing the png paths (from http to https) within "<APPLICATION_NAME>_Capabilities.xml" file located in the WMPS "cache" folder.

 

Thanks

 

Frank

 

Contributor
Posts: 40
Registered: ‎02-24-2021

Re: WMPS Legend Icons uses http instead of https

Thanks Frank,

I neglected to mention I had followed Configuring Print Service over HTTPS protocol and have the print service successfully running over https. (aside from those pesky legend icons going walkabout)

 

I manually edited the wmps capabilities doco and changed http to https.

The legend icons now appear in the prints.

 

Contributor
Posts: 40
Registered: ‎02-24-2021

Re: WMPS Legend Icons uses http instead of https

I should also mention for the WMPS service I have 'Require SSL' checked in IIS, so it will only serve up https, not http. (Public facing site will only be serving up https).

Technical Evangelist
Posts: 568
Registered: ‎09-11-2015

Re: WMPS Legend Icons uses http instead of https

Hi sfhdc,

 

I know that you mentioned that you "configured WMPS to run over https", but still, to be absolutely sure, have you followed the instructions given at:

 

Start Menu > GeoMedia WebMap Professional > GeoMedia WebMap Welcome Page > Documentation > GeoMedia WebMap Administrator Guide =>

search for "https"

=> select "HTTPS Configuration for GeoMedia WebMap services"

 

?

 

Pavel

Contributor
Posts: 40
Registered: ‎02-24-2021

Re: WMPS Legend Icons uses http instead of https

Thanks Pavel,

Went through the instructions again and realised I hadn't deleted the 'http binding'.

Did that, rebooted, and now working.

Will play with the bindings more later to get a better understanding of how portal and http bindings interact.

Technical Evangelist
Posts: 1,424
Registered: ‎09-11-2015

Re: WMPS Legend Icons uses http instead of https

The WMPS capabilities document will generate HTTP links if there are both HTTP and HTTPS binding defined in IIS. If you remove the HTTP binding, the WMPS caps will have proper HTTPS links.

 

This is a long running WebMap known limitation...

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Contributor
Posts: 40
Registered: ‎02-24-2021

Re: WMPS Legend Icons uses http instead of https

And other little things like launching AdminPortal from AdminConsole starts launching with https instead of http. Another (minor) mystery solved.

Technical Evangelist
Posts: 474
Registered: ‎02-04-2016

Re: WMPS Legend Icons uses http instead of https

Hi Shaun,

 

Does removing HTTP binding make any difference in the WMPS Hotspot 'Opens an URL' issue ?  

 

Thanks

 

Frank

Technical Evangelist
Posts: 474
Registered: ‎02-04-2016

Re: WMPS Legend Icons uses http instead of https

Just tested it, it didn't make any difference....

 

Are you going to log a support ticket on that ?