﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11770	WMS Service errors because of HTTP/302 redirects	tyr_asd	wiktorn	"Here is a [https://gis-eppan.gvcc.net/WMS/Eppan?&SERVICE=WMS&VERSION=1.3&REQUEST=GetCapabilities WMS Service] which does HTTP/302 redirects to change the protocol from http to https. This seems to confuse JOSM:

{{{
Image couldn't be fetched: http://gis-eppan.gvcc.net/WMS/Eppan?FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=apotheke_symbol,arzt_symbol,weisses_kreuz_symbol,gesundheitsspren_sym&STYLES=&SRS=EPSG:4326&WIDTH=500&HEIGHT=500&BBOX=11.2567447,46.4479331,11.2579605,46.4487708
	at org.openstreetmap.josm.io.imagery.WMSGrabber.fetch(WMSGrabber.java:173)
	at org.openstreetmap.josm.io.imagery.WMSGrabber.attempt(WMSGrabber.java:132)
	at org.openstreetmap.josm.io.imagery.WMSGrabber.run(WMSGrabber.java:116)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: <!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN"">
<html><head>
<title>302 Found</title>
// -- snip --
}}}

Here are the corresponding HTTP headers:

{{{
$ curl -i ""http://gis-eppan.gvcc.net/WMS/Eppan?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=tankstelle_gebaeude&format=image/png&STYLE=default""   
HTTP/1.1 302 Found
Date: Sat, 08 Aug 2015 13:35:50 GMT
Server: Apache/2.2.8 (Ubuntu) proxy_html/3.0.0 mod_ssl/2.2.8 OpenSSL/0.9.8g
Location: https://gis-eppan.gvcc.net/WMS/Eppan?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=tankstelle_gebaeude&format=image/png&STYLE=default
// -- snip --
}}}

Other software such as QGIS doesn't have problems consuming this WMS service."	defect	closed	normal	15.08	Core imagery	tested	fixed	WMS HTTP redirect 302	
