Details

    • Type: Improvement Improvement
    • Status: Analysis Analysis
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: UDIG 0.5, UDIG 1.2.M2, UDIG 1.2.2
    • Fix Version/s: UDIG 1.4.1
    • Component/s: webservices
    • Labels:
      None

      Description

      When working on uDig behind a firewall you need to set up the java proxy settings by hand in the udig.ini file.

      For more information see http://udig.refractions.net/confluence/display/EN/Running+uDig

      It would be nice to either:

      1. Ask these questions during installation; and add the lines to the ini file
      2. Make a preference page (think this has been done in core eclipse) to set the property at runtime

        Issue Links

          Activity

          Hide
          Jody Garnett added a comment -
          Hey adam - think your installer program is capable of choosing firewall information at installation time?

          If not we can set up a preference page or something. Wish we could figure out the OS env variables or something.
          Show
          Jody Garnett added a comment - Hey adam - think your installer program is capable of choosing firewall information at installation time? If not we can set up a preference page or something. Wish we could figure out the OS env variables or something.
          Hide
          Pierrick Brihaye added a comment -
          It looks like the latest 1.0. RC5 provides no more functionnality to set up a HTTP proxy from the "preferences" menu.

          p.b.
          Show
          Pierrick Brihaye added a comment - It looks like the latest 1.0. RC5 provides no more functionnality to set up a HTTP proxy from the "preferences" menu. p.b.
          Hide
          Jody Garnett added a comment -
          I wonder if we can do something about that, as shown above the usual java solution is to have the installer program collect firewall information. The trick is we have to set this information at JVM level.

          I will have a look around the web and see what I can see.
          Show
          Jody Garnett added a comment - I wonder if we can do something about that, as shown above the usual java solution is to have the installer program collect firewall information. The trick is we have to set this information at JVM level. I will have a look around the web and see what I can see.
          Hide
          Pierrick Brihaye added a comment -
          Hi,

          There was a preference item for proxy setting in 1.0 RC4 and it used to work nicely.

          Of course, it is possible to default proxy settings using system properties when the JVM is launched. It is also possible to set up a proxy on a per-connection basis :

          http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpConnection.html

          p.b.
          Show
          Pierrick Brihaye added a comment - Hi, There was a preference item for proxy setting in 1.0 RC4 and it used to work nicely. Of course, it is possible to default proxy settings using system properties when the JVM is launched. It is also possible to set up a proxy on a per-connection basis : http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpConnection.html p.b.
          Hide
          Pierrick Brihaye added a comment -
          Still no preference item in 1.0.0 :-(
          Show
          Pierrick Brihaye added a comment - Still no preference item in 1.0.0 :-(
          Hide
          Jody Garnett added a comment -
          Okay finally another idea - java webstart.

          See: http://forums.java.net/jive/thread.jspa?messageID=17485&tstart=0#17485

          The rough idea is that if we run udig via java webstart it will get a chance to know the proxy settings. There is already a jira to try Java webstart out (I think it is even an export option for Eclipse 3.1 now).
          Show
          Jody Garnett added a comment - Okay finally another idea - java webstart. See: http://forums.java.net/jive/thread.jspa?messageID=17485&tstart=0#17485 The rough idea is that if we run udig via java webstart it will get a chance to know the proxy settings. There is already a jira to try Java webstart out (I think it is even an export option for Eclipse 3.1 now).
          Hide
          Adam Hill added a comment -
          Another issue in uDig is handling proxies that do not work if used with internal addresses, but rely on the browser/apps internal "bypass proxies for local addresses" functionality.

          This would be a nice to have.
          Show
          Adam Hill added a comment - Another issue in uDig is handling proxies that do not work if used with internal addresses, but rely on the browser/apps internal "bypass proxies for local addresses" functionality. This would be a nice to have.
          Hide
          Jody Garnett added a comment -
          I think you can accomplish all of that by adding proxy information to your udig.ini file as documented on the RUnning uDig wiki page here:
          - http://udig.refractions.net/confluence/display/EN/Running+uDig#RunninguDig-ProxySettings

          Eclipse 3.4 has a proxy settings preference page; I am not sure how it works but perhaps we can add it to the uDig application and see if it functions?
          Show
          Jody Garnett added a comment - I think you can accomplish all of that by adding proxy information to your udig.ini file as documented on the RUnning uDig wiki page here: - http://udig.refractions.net/confluence/display/EN/Running+uDig#RunninguDig-ProxySettings Eclipse 3.4 has a proxy settings preference page; I am not sure how it works but perhaps we can add it to the uDig application and see if it functions?
          Hide
          Jody Garnett added a comment -
          (1:27:39 PM) jgarnett: another fun one would be this ... http://jira.codehaus.org/browse/UDIG-1476
          (1:27:49 PM) jgarnett: see if we can get the normal eclipse "proxy settings" preference page into udig
          (1:27:58 PM) jgarnett: in anycase I trust you are having fun
          (1:27:59 PM) jhudson: :) k
          (1:28:16 PM) jgarnett: note if you have to you can make your own prefernece page (copying one of the others)
          (1:28:19 PM) jgarnett: and fill in the fields
          (1:28:29 PM) jgarnett: and set the java system properties as the application is running
          (1:28:48 PM) jgarnett: (at least I think so - it is what I did as udig starts up in net.refractions.udig.libs)
          (1:28:56 PM) jhudson: ok, not 100% sure what that means right now, but im sure ill work it out
          (1:29:56 PM) jgarnett: System.setProperty("org.geotools.referencing.forceXY", "true"); //$NON-NLS-1$ //$NON-NLS-2$
          (1:30:01 PM) jgarnett: example of setting a java system property
          (1:30:30 PM) jgarnett: http://udig.refractions.net/confluence/display/EN/Running+uDig#RunninguDig-ProxySettings documents what settings to change
          (1:30:37 PM) jgarnett: but stealing a working preference page would be more fun
          Show
          Jody Garnett added a comment - (1:27:39 PM) jgarnett: another fun one would be this ... http://jira.codehaus.org/browse/UDIG-1476 (1:27:49 PM) jgarnett: see if we can get the normal eclipse "proxy settings" preference page into udig (1:27:58 PM) jgarnett: in anycase I trust you are having fun (1:27:59 PM) jhudson: :) k (1:28:16 PM) jgarnett: note if you have to you can make your own prefernece page (copying one of the others) (1:28:19 PM) jgarnett: and fill in the fields (1:28:29 PM) jgarnett: and set the java system properties as the application is running (1:28:48 PM) jgarnett: (at least I think so - it is what I did as udig starts up in net.refractions.udig.libs) (1:28:56 PM) jhudson: ok, not 100% sure what that means right now, but im sure ill work it out (1:29:56 PM) jgarnett: System.setProperty("org.geotools.referencing.forceXY", "true"); //$NON-NLS-1$ //$NON-NLS-2$ (1:30:01 PM) jgarnett: example of setting a java system property (1:30:30 PM) jgarnett: http://udig.refractions.net/confluence/display/EN/Running+uDig#RunninguDig-ProxySettings documents what settings to change (1:30:37 PM) jgarnett: but stealing a working preference page would be more fun

            People

            • Assignee:
              Unassigned
              Reporter:
              Jody Garnett
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: