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 80904 Details for
Bug 200209
Using fully qualified host name to import a local log invokes remote import
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 file with updated org.eclipse.hyades.security.internal.util.BaseConnectUtil()
200209 patch.txt (text/plain), 1.24 KB, created by
Bing Xu
on 2007-10-22 16:12:22 EDT
(
hide
)
Description:
Patch file with updated org.eclipse.hyades.security.internal.util.BaseConnectUtil()
Filename:
MIME Type:
Creator:
Bing Xu
Created:
2007-10-22 16:12:22 EDT
Size:
1.24 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.tptp.platform.common >Index: src/org/eclipse/hyades/security/internal/util/BaseConnectUtil.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.common/src/org/eclipse/hyades/security/internal/util/BaseConnectUtil.java,v >retrieving revision 1.10 >diff -u -r1.10 BaseConnectUtil.java >--- src/org/eclipse/hyades/security/internal/util/BaseConnectUtil.java 23 Apr 2007 21:59:58 -0000 1.10 >+++ src/org/eclipse/hyades/security/internal/util/BaseConnectUtil.java 22 Oct 2007 20:10:56 -0000 >@@ -731,19 +731,20 @@ > > public static boolean isLocalHost(String hostname) { > String name = "localhost"; >- if (name.equals(hostname)) >+ if (name.equalsIgnoreCase(hostname)) > return true; > > try { >- Node fnode = NodeFactory.createNode(name); >- name = fnode.getInetAddress().getHostName(); >+ InetAddress a1 = InetAddress.getByName(hostname); >+ InetAddress a2 = InetAddress.getLocalHost(); >+ >+ if(a1.getHostAddress().equals(a2.getHostAddress())){ >+ return true; >+ } > } catch (UnknownHostException exc) { > return false; > } > >- if (hostname.equals(name)) >- return true; >- > return false; > } >
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 200209
: 80904