﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8566	Improper handling of percent-encoded urls towards Overpass-API	tyr_asd	team	"When using the import command of the RemoteControl protocol, JOSM doesn't properly handle already percent-encoded URLs: (This is a regression over what JOSM did a few weeks ago, when I last checked.)

Lets say, I want to load the following URL:
{{{
http://www.overpass-api.de/api/interpreter?data=node%5B%22foo%22%5D%3Bout%20meta%3B
}}}

Using this URL as the parameter ""url"" of the import command means that I have to url-encode the whole thing (because ""url"" is a HTTP-GET parameter):
{{{
http://localhost:8111/
GET /import?url=http%3A%2F%2Fwww.overpass-api.de%2Fapi%2Finterpreter%3Fdata%3Dnode%255B%2522foo%2522%255D%253Bout%2520meta%253B
}}}

but instead of grabbing the original URL, JOSM does this:
{{{
GET http://www.overpass-api.de/api/interpreter?data=node%255B%2522foo%2522%255D%253Bout%2520meta%253B
}}}

This looks like JOSM is either doing one superfluous url-encoding step or is missing one internal url-decoding step. ~~I found out that after bug #8148 the code was [http://josm.openstreetmap.de/changeset?sfp_email=&sfph_mail=&reponame=josm&new=5691%40trunk%2Fsrc%2Forg%2Fopenstreetmap%2Fjosm%2Fio%2Fremotecontrol%2Fhandler%2FImportHandler.java&old=5085%40trunk%2Fsrc%2Forg%2Fopenstreetmap%2Fjosm%2Fio%2Fremotecontrol%2Fhandler%2FImportHandler.java altered] slightly - maybe that could be the cause of this?~~

"	defect	closed	normal	14.01	Core	tested	fixed	overpass api	roland.olbricht
