Modify

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#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)

proxy-via-preferences.patch (7.8 KB ) - added by egore@… 16 years ago.
Patch to add support to set proxy by using the preferences menu
proxy-via-preferences.2.patch (8.0 KB ) - added by egore@… 16 years ago.
Updated version that also unsets the proxy correctly
proxy-via-preferences.3.patch (8.0 KB ) - added by egore@… 16 years ago.
Patch without java 6 stuff

Download all attachments as: .zip

Change History (11)

comment:1 by WoodyMV, 16 years ago

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

by egore@…, 16 years ago

Attachment: proxy-via-preferences.patch added

Patch to add support to set proxy by using the preferences menu

comment:2 by egore@…, 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 egore@…, 16 years ago

Updated version that also unsets the proxy correctly

by egore@…, 16 years ago

Patch without java 6 stuff

comment:3 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Added in r982.

comment:4 by anonymous, 16 years ago

Resolution: fixed
Status: closedreopened

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 anonymous, 16 years ago

Cc: jgbreezer@… added

comment:6 by anonymous, 16 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r995.

comment:7 by framm, 16 years ago

Priority: majorminor
Resolution: fixed
Status: closedreopened

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...

comment:8 by stoecker, 16 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r1159.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.