Modify

Ticket #682 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

Using JOSM behind a Proxy which requires user authentication

Reported by: anonymous Owned by: framm
Priority: minor 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

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

Change History

comment:1 Changed 4 years ago by WoodyMV

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

Changed 3 years ago by egore@…

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

comment:2 Changed 3 years ago by egore@…

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

Changed 3 years ago by egore@…

Updated version that also unsets the proxy correctly

Changed 3 years ago by egore@…

Patch without java 6 stuff

comment:3 Changed 3 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to fixed

Added in r982.

comment:4 Changed 3 years ago by anonymous

  • Status changed from closed to reopened
  • Resolution fixed deleted

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 Changed 3 years ago by anonymous

  • Cc jgbreezer@… added

comment:6 Changed 3 years ago by anonymous

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed in r995.

comment:7 Changed 3 years ago by framm

  • Priority changed from major to minor
  • Status changed from closed to reopened
  • Resolution fixed deleted

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 Changed 3 years ago by stoecker

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed in r1159.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.