﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13473	Adding WMS imagery doesn't work properly for https enabled sites	SanderH	team	"==== What steps will reproduce the problem?
1. In the menu click Imagery -> Imagery preferences
2. Click to add WMS
3. Enter a https server, optionally explicitly setting the port to :443

==== What is the expected result?
The basic service URL is used unaltered in the `Verify generated WMS URL` box.

==== What happens instead?
In the `Verify generated WMS URL` box, https is changed to http and port 80 is wrongly added and if the port 443 was used it's also reset to port 80. This makes the WMS fail, and users having to correct the service url.

==== Please provide any additional information below. Attach a screenshot if possible.
I have created a WMS service and configured it for https. JOSM can use the WMS, but configuring it via the 'Add Imagery URL' dialog is a bit troublesome.

I don't (yet) want to share my WMS publicly, but if you want, I can provide you with it via e-mail.


{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-08-11 21:54:24 +0200 (Thu, 11 Aug 2016)
Build-Date:2016-08-11 22:36:05
Revision:10786
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10786 en) Windows 10 64-Bit
Memory Usage: 2015 MB / 2015 MB (1136 MB allocated, but free)
Java version: 1.8.0_102-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-5ee29e1d, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=10071, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

"	defect	closed	normal		Core imagery	tested	worksforme	template_report	wiktorn
