You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by wc...@apache.org on 2001/04/23 22:14:46 UTC
cvs commit: xml-soap/java/src/org/apache/soap/util/mime MimeUtils.java
wcloeten 01/04/23 13:14:46
Modified: java/src/org/apache/soap/util/mime MimeUtils.java
Log:
removed user name from unique ID generator: 1. to avoid SecurityExceptions 2. to avoid problem with non-ASCII user IDs
Revision Changes Path
1.3 +3 -4 xml-soap/java/src/org/apache/soap/util/mime/MimeUtils.java
Index: MimeUtils.java
===================================================================
RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/mime/MimeUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MimeUtils.java 2001/01/13 16:14:10 1.2
+++ MimeUtils.java 2001/04/23 20:14:43 1.3
@@ -67,7 +67,7 @@
/**
* Mime-related utility functions.
*
- * @author Wouter Cloetens (wcloeten@raleigh.ibm.com)
+ * @author Wouter Cloetens (wouter@mind.be)
*/
public class MimeUtils {
@@ -81,7 +81,6 @@
* <code>InternetAddress.getLocalAddress()</code>.
*/
public static String getUniqueValue() {
- String user = System.getProperty("user.name");
String host = null;
try {
host = InetAddress.getLocalHost().getHostName();
@@ -91,9 +90,9 @@
StringBuffer s = new StringBuffer();
- // Unique string is <hashcode>.<currentTime>.apache-soap.<suffix>
+ // Unique string is <hashcode>.<currentTime>.apache-soap.<hostname>
s.append(s.hashCode()).append('.').append(System.currentTimeMillis()).
- append(".apache-soap.").append(user).append('.').append(host);
+ append(".apache-soap.").append(host);
return s.toString();
}