Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external http wms with https application #3753

Open
geoATbsPUNKTch opened this issue May 15, 2018 · 2 comments
Open

external http wms with https application #3753

geoATbsPUNKTch opened this issue May 15, 2018 · 2 comments

Comments

@geoATbsPUNKTch
Copy link

Project:

Running command: `

Result:
The data is no displayed, an error is reported in the project_error.log

2018-05-15 15:02:15,242 ERROR [c2cgeoportal.views.proxy][Dummy-8] Error 'Unauthorized' in response of URL:
http://geowms.bl.ch/?CRS=EPSG%3A2056&SERVICE=WMS&FORMAT=image%2Fpng&SERVERTYPE=mapserver&STYLES=&WIDTH=2325&s_columns_bk=doc_profile+as+mapbs_bk_doc_profile%2C+doc_situation+as+mapbs_bk_doc_situation%2C+doc_picture+as+mapbs_bk_doc_picture&LAYERS=grundkarte_sw_group&user_id=3018&cache_version=d544c7d0156e4ce0ae0c15cd63f2d113&role_id=3018&s_ga=GA_GeologischerAtlas&TRANSPARENT=true&username=Intranet&s_sb=SB_Satellitenbilder&REQUEST=GetMap&s_sk=SK_LandeskartenSwisstopo&s_si=SI_Swissimage&HEIGHT=1349&s_lo=LO_KatasterLandkreisLoerrach&VERSION=1.3.0&BBOX=2618924.75%2C1262911.75%2C2620087.25%2C1263586.25&s_columns_dm=adresse+as+dm_adresse%2C+hausnummerindex+as+dm_hausnummerindex&s_columns_intranet=0%2C1&ogcserver=source+for+http%3A%2F%2Fgeowms.bl.ch%2F%3F+image%2Fpng&s_bl=http%3A%2F%2Fgeowms.bl.ch%2F%3F.
2018-05-15 15:02:15,243 ERROR [c2cgeoportal.views.proxy][Dummy-8] Status: 401
2018-05-15 15:02:15,243 ERROR [c2cgeoportal.views.proxy][Dummy-8] Method: GET
2018-05-15 15:02:15,243 ERROR [c2cgeoportal.views.proxy][Dummy-8] --- With headers ---
X-Forwarded-Server: map.geo.test.adminbs.ch
X-Forwarded-Host: map.geo.test.bs.ch
X-Https: on
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36
Connection: close
Referer: https://map.geo.test.bs.ch/ngeodesktop?lang=de&baselayer_ref=OF_BaselStadt2017Maerz&map_x=2619506&map_y=1263249&map_zoom=8&tree_groups=Kanton%20Basel-Landschaft%2CDeutschland%2CFrankreich&tree_group_layers_Kanton%20Basel-Landschaft=BL_WMS_AmtlicheVermessung&tree_group_layers_Deutschland=&tree_group_layers_Frankreich=
X-Forwarded-Proto: https
Cache-Control: no-cache
Accept: image/webp,image/apng,image/*,*/*;q=0.8
X-Forwarded-For: 10.84.105.147, 10.80.254.11
Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,lb;q=0.2
Front-End-Https: On
2018-05-15 15:02:15,243 ERROR [c2cgeoportal.views.proxy][Dummy-8] --- Return content ---
2018-05-15 15:02:15,243 ERROR [c2cgeoportal.views.proxy][Dummy-8] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>

If no direct error, result and expected result:

if the Application is called with http://map.geo.bs.ch the external wms is working as expected

The external wms in the admin tool:
wmsbl

the mapserver map file:
https://github.com/camptocamp/baselstadt_mapbs/blob/master/mapserver/include/BL_WMS.map.mako

@eleu
Copy link
Member

eleu commented May 15, 2018

The first two line state that the WMS source used returns a "401 unauthorized".

2018-05-15 15:02:15,242 ERROR [c2cgeoportal.views.proxy][Dummy-8] Error 'Unauthorized' in response of URL:
http://geowms.bl.ch/?CRS=EPSG%3A2056&SERVICE=WMS&FORMAT=image%2Fpng&SERVERTYPE=mapserver&STYLES=&WIDTH=2325&s_columns_bk=doc_profile+as+mapbs_bk_doc_profile%2C+doc_situation+as+mapbs_bk_doc_situation%2C+doc_picture+as+mapbs_bk_doc_picture&LAYERS=grundkarte_sw_group&user_id=3018&cache_version=d544c7d0156e4ce0ae0c15cd63f2d113&role_id=3018&s_ga=GA_GeologischerAtlas&TRANSPARENT=true&username=Intranet&s_sb=SB_Satellitenbilder&REQUEST=GetMap&s_sk=SK_LandeskartenSwisstopo&s_si=SI_Swissimage&HEIGHT=1349&s_lo=LO_KatasterLandkreisLoerrach&VERSION=1.3.0&BBOX=2618924.75%2C1262911.75%2C2620087.25%2C1263586.25&s_columns_dm=adresse+as+dm_adresse%2C+hausnummerindex+as+dm_hausnummerindex&s_columns_intranet=0%2C1&ogcserver=source+for+http%3A%2F%2Fgeowms.bl.ch%2F%3F+image%2Fpng&s_bl=http%3A%2F%2Fgeowms.bl.ch%2F%3F.

You might want to verify that you transmit the (right) credentials or requests on this external wms are passing from the server.

@geoATbsPUNKTch
Copy link
Author

geoATbsPUNKTch commented May 16, 2018

No credentials neede, it works when accessing the gmf with http:// and it works with https:// if the x-https and Front-End-Https Header are removed from the request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants