﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7434	"remotecontrol: URLs with ""&"" and ""?"" character don't work"	werner2101	team	"I'm running a server at localhost:8888 that can deliver osm xml data.

When I try to load data in josm with the import command:

  wget -Oresult.txt http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711\&mode=recursive

Then the josm does not load the data.

If I encode the URL of the second server:

  wget -Oresult.txt http://localhost:8111/import?url=http://localhost:8888/relations%3Frelations=19711%26mode=recursive

then josm loads the right data from the localhost server 8888.

I get the following commandline output when using the first url without encoding:

  werner@linux-g0e5:~/osm> wget -Oresult.txt http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711\&mode=recursive
  
  asking libproxy about url 'http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive'
  
  libproxy suggest to use 'direct://'
  
  --2012-02-20 19:55:13--  http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive
  
  Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1

  Verbindungsaufbau zu localhost (localhost)|::1|:8111... fehlgeschlagen: Verbindungsaufbau abgelehnt.

  Verbindungsaufbau zu localhost (localhost)|127.0.0.1|:8111... verbunden.

  HTTP-Anforderung gesendet, warte auf Antwort... RemoteControl received: GET /import?url=http://localhost:8888/relations?relations=19711&mode=recursive HTTP/1.1

  GET http://localhost:8888/relations

  /relations

  localhost - - [20/Feb/2012 19:55:13] ""GET /relations HTTP/1.1"" 404 -

  200 OK

  Länge: 4 [text/plain]

  In »»result.txt«« speichern.

  100%[=================================================================================================================================>] 4           --.-K/s   in 0s      

  2012-02-20 19:55:13 (327 KB/s) - »»result.txt«« gespeichert [4/4]


Note: the line RemoteControl received is ok, but in the next line GET ... the url is incomplete

JOSM version 4878

OS: SuSE Linux 12.1

  "	defect	closed	normal		Core	latest	fixed	remote control	
