[Issue 1833] New - Have to be able to provide user and pass for proxy in update center

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 1833] New - Have to be able to provide user and pass for proxy in update center

horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833
                 Issue #|1833
                 Summary|Have to be able to provide user and pass for proxy in
                        |update center
               Component|hudson
                 Version|current
                Platform|PC
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|plugin
             Assigned to|issues@hudson
             Reported by|horrorhead






------- Additional comments from [hidden email] Tue Jun 10 12:06:33 +0000 2008 -------
In the new update center (which looks great) you need to be able to provide a
username and password for the proxy. Not sure where to put it otherwise.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

scm_issue_link
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul 10 06:43:26 +0000 2008 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/PluginManager.java
 trunk/hudson/main/core/src/main/java/hudson/ProxyConfiguration.java
 trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
 trunk/hudson/main/core/src/main/java/hudson/model/UpdateCenter.java
 trunk/hudson/main/core/src/main/resources/hudson/PluginManager/advanced.jelly
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=10737
Log:
[FIXED HUDSON-1833] Update center accepts HTTP proxy username/password.
In 1.234.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

tjuerge
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833



User tjuerge changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|RESOLVED                  |REOPENED
--------------------------------------------------------------------------------
              Resolution|FIXED                     |
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Fri Jul 11 17:34:42 +0000 2008 -------
This still doesn't help Hudson running on a unix box (in our case Solaris 10 on
Sun T2000) to successfully authenticate with an ISA proxy:

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407
Proxy Authentication Required ( The ISA Server requires authorization to fulfill
the request. Access to the Web Proxy service is denied.  )"
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1296)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1290)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:944)
        at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
        at hudson.model.UpdateCenter$InstallationJob.run(UpdateCenter.java:432)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web Proxy service is denied.  )"
        at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1423)
        at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:164)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
        at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052)
        at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)
        at java.net.URLConnection.getContentLength(URLConnection.java:474)
        at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:378)
        at hudson.model.UpdateCenter$InstallationJob.run(UpdateCenter.java:431)
        ... 6 more

Is there any chance to get this working too?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

tjuerge
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Fri Jul 11 17:53:22 +0000 2008 -------
On the same box as Hudson the Maven proxy Artifactory
http://www.jfrog.org/sites/artifactory/ is happily accessing the internet via
the same ISA proxy. Please check the patch attached to this ticket
http://jira.codehaus.org/browse/MAVENPROXY-42 

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

drulli
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Mon Jul 14 06:54:20 +0000 2008 -------
This does not work on my Windows 2003 Server, too. I get the same exception here.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

schmieder
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Mon Jul 14 11:33:54 +0000 2008 -------
When running hudson in tomcat6 started as service on a windows machine, I have
the same problem not to get through the ntlm authorization proxy server. When
running hudson manually with java -jar hudson.jar the plugin can succesfully
tunnel through the proxy with the user/pass settings provided.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

Kohsuke Kawaguchi
Administrator
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Tue Aug  5 21:57:21 +0000 2008 -------
Recurrence of this in the users list:
http://www.nabble.com/Unable-to-install-update-plugins-behind-a-proxy-td18834971.html

In particular, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6226610
for the root cause.

Perhaps the only way to do this is to use Jakarta Commons HttpClient?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

Kohsuke Kawaguchi
Administrator
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Tue Aug  5 22:21:39 +0000 2008 -------
Potentially relevant hack. A real hack in a bad sense of the word:
http://forums.sun.com/thread.jspa?messageID=532381

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

tjuerge
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833



User tjuerge changed the following:

                What    |Old value                 |New value
================================================================================
     IssuesThisDependsOn|                          |1920
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Wed Jul 15 19:39:38 +0000 2009 -------
Maybe the patch attached to #1920 does help here. At least it works for me on
Solaris 10 on a T2000 box sitting behind an ISA proxy.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

Kohsuke Kawaguchi
Administrator
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833




This issue depends on issue 1920, which changed state:

                What    |Old value                 |New value
================================================================================
                  Status|STARTED                   |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1833] Have to be able to provide user and pass for proxy in update center

drulli
In reply to this post by horrorhead
https://hudson.dev.java.net/issues/show_bug.cgi?id=1833






------- Additional comments from [hidden email] Tue Jul 21 16:59:45 +0000 2009 -------
Seems that the patch for #1920 does not help. With Hudson 1.316 I still get
exceptions:

    * Überprüfe Zugang zum Internet
    * Überprüfe Zugang zu java.net-Server
    * java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.0 407 Proxy Authentication Required" at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source) at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source) at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at
hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:640)
at
hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:514)
at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:682) at
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at
java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
java.lang.Thread.run(Unknown Source)

FindBugs Plugin
Fehlgeschlagen

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407
Proxy Authentication Required"
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:563)
        at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:759)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.0 407 Proxy Authentication Required"
        at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
        at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
        at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
        at java.net.URLConnection.getContentLength(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Unknown
Source)
        at
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:562)
        ... 7 more


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]