Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 163412 Details for
Bug 295021
User is pummeled with back-to-back password request dialogs when he brings up the update manager
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
core.ui.net_v02
core.ui.net_v02.txt (text/plain), 1.76 KB, created by
Pawel Pogorzelski
on 2010-03-30 10:38:51 EDT
(
hide
)
Description:
core.ui.net_v02
Filename:
MIME Type:
Creator:
Pawel Pogorzelski
Created:
2010-03-30 10:38:51 EDT
Size:
1.76 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.net >Index: src/org/eclipse/ui/internal/net/auth/NetAuthenticator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/NetAuthenticator.java,v >retrieving revision 1.1 >diff -u -r1.1 NetAuthenticator.java >--- src/org/eclipse/ui/internal/net/auth/NetAuthenticator.java 26 Feb 2007 18:16:44 -0000 1.1 >+++ src/org/eclipse/ui/internal/net/auth/NetAuthenticator.java 30 Mar 2010 14:34:14 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2007 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -13,7 +13,13 @@ > import java.net.*; > > public class NetAuthenticator extends Authenticator { >- >+ >+ private static ThreadLocal userCanceled = new ThreadLocal() { >+ protected synchronized Object initialValue() { >+ return new Boolean(false); >+ } >+ }; >+ > /* > * @see Authenticator#getPasswordAuthentication() > */ >@@ -40,10 +46,16 @@ > > Authentication auth = UserValidationDialog.getAuthentication( > hostString, promptString); >+ userCanceled.set(new Boolean(auth == null)); > if (auth != null) > return new PasswordAuthentication(auth.getUser(), auth > .getPassword().toCharArray()); > else > return null; > } >+ >+ public static boolean isUserCanceled() { >+ Boolean canceled = (Boolean) userCanceled.get(); >+ return canceled.booleanValue(); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 295021
:
152110
|
152115
|
152175
|
152361
|
152430
|
163407
| 163412