#682 closed enhancement (fixed)
Using JOSM behind a Proxy which requires user authentication
Reported by: | anonymous | Owned by: | framm |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: | jgbreezer@… |
Description
It seems that at the moment JOSM can't connect through a proxy if this requires UserID/Password authentication.
Danilo
Attachments (3)
Change History (11)
comment:1 by , 16 years ago
by , 16 years ago
Attachment: | proxy-via-preferences.patch added |
---|
Patch to add support to set proxy by using the preferences menu
comment:2 by , 16 years ago
The attached patch tries to implement setting the proxy by using the preferences menu. It uses the Main.pref to store the values and sets these values into the system properties so they get used. I'm not sure if the GUI is allowed to be done this way in JOSM but at least it looks good to me.
Note: I needed to remove the filler from FilePreferences since the proxy stuff is below this entry (and the entry is wrong at this anyway).
by , 16 years ago
Attachment: | proxy-via-preferences.2.patch added |
---|
Updated version that also unsets the proxy correctly
comment:4 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
In svn revision 975, on Windows, with Java1.6.0_07 (probably irrelevant, but anyway), the preferences dialog tab for setting proxies has the "anonymous" tickbox and disable/enables the username/password textboxes depending whether its ticked or not, but I believe it does it the wrong way round!
When its ticked, for anonymous, the username/password is enabled and you can type; when its disabled you can't (and you want to be able to, as its not in anonymous mode). According to the UI anyway.
comment:5 by , 16 years ago
Cc: | added |
---|
comment:7 by , 16 years ago
Priority: | major → minor |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
It has turned out that the usual Java way of setting a proxy on the command line, as detailed by WoodyMV above, does now not work with JOSM any more; it used to work before this patch was applied. I would be grateful if someone involved in writing/applying this patch could perhaps look into restoring that functionality. Not high priority but someone who roams a lot with his notebook might not want to change his preferences file depending on what network he's in at the moment...
There is a simple solution:
Start java/josm-latest.jar with parameters like this:
java -DproxySet=true -Dhttp.proxyHost=myproxy.mycompany.com -DproxyPort=8080 -DproxyUser=user -DproxyPassword=password -jar josm-latest.jar
-DproxyUser and -DproxyPassword are optional.
I've checked out and it works fine.
@see http://www.ncbi.nlm.nih.gov/entrez/query/static/esoap_java_help.html
Jan