[Geoserver-users] wmsgetfeature fails when published to external web server

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

I have not been able to recreate the problem. Is it when you turn the layers on? Is it with a particular version if IE?

Nice looking map.

From: Ismail, Mark [mailto:mark.ismail@anonymised.com]
Sent: Thursday, June 19, 2014 8:19 AM
To: geoserver mailing list (geoserver-users@lists.sourceforge.net)
Subject: [Geoserver-users] wmsgetfeature fails when published to external web server

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.

It breaks in IE10 / 11 when you do a map click

I haven’t tried older versions yet

···

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

From: Ralph Dell [mailto:RDell@anonymised.com]
Sent: 19 June 2014 13:45
To: Ismail, Mark; geoserver mailing list (geoserver-users@anonymised.comceforge.net)
Subject: RE: [Geoserver-users] wmsgetfeature fails when published to external web server

I have not been able to recreate the problem. Is it when you turn the layers on? Is it with a particular version if IE?

Nice looking map.

From: Ismail, Mark [mailto:mark.ismail@anonymised.com]
Sent: Thursday, June 19, 2014 8:19 AM
To: geoserver mailing list (geoserver-users@lists.sourceforge.net)
Subject: [Geoserver-users] wmsgetfeature fails when published to external web server

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.

Mark,

the app, just for showing the first map, is producing over 500 requests, almost all WMS tiles.

I understand this is not related to the GetFeatureinfo issue but is a bit hard for your users having to wait for all that layers while not needed for current visualization.

By the way I didn’t find a tool for the info

···

41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2014-06-19 14:18 GMT+02:00 Ismail, Mark <mark.ismail@anonymised.com>:

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Click anywhere in the map and a popup will appear with the result of the wms request in it

With regards all the requests – I am not sure why it grabs so much data at once - I guess I need to optimise it more

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

···

From: Stefano Iacovella [mailto:stefano.iacovella@…84…]
Sent: 19 June 2014 14:18
To: Ismail, Mark
Cc: geoserver mailing list (geoserver-users@lists.sourceforge.net)
Subject: Re: [Geoserver-users] wmsgetfeature fails when published to external web server

Mark,

the app, just for showing the first map, is producing over 500 requests, almost all WMS tiles.

I understand this is not related to the GetFeatureinfo issue but is a bit hard for your users having to wait for all that layers while not needed for current visualization.

By the way I didn’t find a tool for the info


41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2014-06-19 14:18 GMT+02:00 Ismail, Mark <mark.ismail@…6440…>:

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

You probably have a cross origin request issue - the assumption is that your javascript and geoserver are using the same port/host otherwise you will need a proxy.

Ian

···

On 19 June 2014 13:18, Ismail, Mark <mark.ismail@anonymised.com> wrote:

Hi

I have an openlayers site pulling data from geoserver – all was fine until I published it externally

The maps display fine but the wmsgetfeatureinfo requests are failing in Internet explorer with access denied – it works in firefox and chrome albeit with warning about geoserver requests being http and the server being https

You can see the site live here – https://summert.knowsley.gov.uk

I think it may be a cors related issue but am not certain.

One of our network people suggested enabling geoserver to use https but I am not sure how to enable ssl

So 2 things I would like advice on – is ssl causing the failure >?

And if so how is it turned on in geoserver?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Ian Turton

2014-06-19 15:33 GMT+02:00 Ismail, Mark <mark.ismail@anonymised.com>:

lick anywhere in the map and a popup will appear with the result of the
wms request in it

From Firefox it dose not work.

After clicking the cursor I get this JS error:

(mixed active content) “
http://geotest.knowsley.gov.uk:8080/geoserver/Geostore/wms?LAYERS=Geostore%3AKnowsley%20Boundary&QUERY_LAYERS=Geostore%3AKnowsley%20Boundary&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=342911.131101%2C390187.403438%2C346042.868899%2C391974.596563&FEATURE_COUNT=50&HEIGHT=646&WIDTH=1132&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fjson&SRS=EPSG%3A27700&X=651&Y=178

Maybe because you are mixing http and https?

---------------------------------------------------
41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

Going directly to the link below returns a fairly large JSON result.

I also see that the original page location is at https://summert.knowsley.gov.uk

The geoserver call is setup as

InfoForPopup = new OpenLayers.Control.WMSGetFeatureInfo({

url: ‘http://geotest.knowsley.gov.uk:8080/geoserver/Geostore/wms’,

Since this is not the same as the base page, you have 2 issues going on.

  1. Mixed content for ssl/non-ssl

a. This is annoying mostly, but since the main page is ssl enabled, It shouldn’t block the non-ssl calls. Only complain to the user about it

b. This can be fixed by applying a certificate to the geotest.knowsley.gov.uk server and changing the InfoForPopup url to https and your secure port, presumable 443

  1. Cross Broswer Javascript

a. This is the one that is blocking your access

b. This can be solved by adding a proxy server to the summert.knowsley.gov.uk server to handle the non-image requests.

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@...5633...

image001.png

···

2014-06-19 15:33 GMT+02:00 Ismail, Mark <mark.ismail@…6440…>:

lick anywhere in the map and a popup will appear with the result of the wms request in it

From Firefox it dose not work.

After clicking the cursor I get this JS error:

(mixed active content) “http://geotest.knowsley.gov.uk:8080/geoserver/Geostore/wms?LAYERS=Geostore%3AKnowsley%20Boundary&QUERY_LAYERS=Geostore%3AKnowsley%20Boundary&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=342911.131101%2C390187.403438%2C346042.868899%2C391974.596563&FEATURE_COUNT=50&HEIGHT=646&WIDTH=1132&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fjson&SRS=EPSG%3A27700&X=651&Y=178

Maybe because you are mixing http and https?


41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas