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 23053 Details for
Bug 78290
[FTP WebDAV] username not stored / asked for
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
patch.txt (text/plain), 1.61 KB, created by
Olivier Oeuillot
on 2005-06-14 10:33:48 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Olivier Oeuillot
Created:
2005-06-14 10:33:48 EDT
Size:
1.61 KB
patch
obsolete
>Index: AuthenticatedSite.java >=================================================================== >RCS file: /home/eclipse/platform-vcm-home/plugins/target/org.eclipse.target/src/org/eclipse/target/AuthenticatedSite.java,v >retrieving revision 1.2 >diff -u -r1.2 AuthenticatedSite.java >--- AuthenticatedSite.java 22 Feb 2005 19:47:07 -0000 1.2 >+++ AuthenticatedSite.java 14 Jun 2005 14:33:34 -0000 >@@ -105,5 +105,15 @@ > Platform.addAuthorizationInfo(toUrl(), "", "", authInfo); //$NON-NLS-1$ //$NON-NLS-2$ > this.password=password; > } >- >+ >+ >+ protected void initializeAuthorization() { >+ Map infos = Platform.getAuthorizationInfo(toUrl(), "", ""); >+ if (infos != null) { >+ if (username == null && password == null) { >+ username = (String) infos.get("name"); >+ password = (String) infos.get("password"); >+ } >+ } >+ } > } >Index: Site.java >=================================================================== >RCS file: /home/eclipse/platform-vcm-home/plugins/target/org.eclipse.target/src/org/eclipse/target/Site.java,v >retrieving revision 1.3 >diff -u -r1.3 Site.java >--- Site.java 22 Feb 2005 19:47:07 -0000 1.3 >+++ Site.java 14 Jun 2005 14:33:36 -0000 >@@ -98,9 +98,18 @@ > Assert.isTrue(location == null); > Assert.isNotNull(locationId); > location = locationId; >+ >+ initializeAuthorization(); > if (memento != null) > init(memento); > } >+ >+ /** >+ * Reads authorizations for this site. >+ * This method is invoked on startup to restore autorizations. >+ */ >+ protected void initializeAuthorization() { >+ } > > /** > * Reads the state for this site from the given memento.
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 78290
:
23049
|
23050
|
23051
| 23053