[#3317] usernames for injest accounts are not system unique

Please log in

State: more information
Closed
Date:
2009-01-14 05:30
Priority: more information
3
Submitted By:
Bennett Landman (bennett)
Assigned To: more information
Erik Sax (esax)
Hardware: 
None
Product: 
None
Operating System: 
All
Component: 
None
Version: 
None
Severity: 
critical
Resolution: 
Won't Fix
Summary: more information
usernames for injest accounts are not system unique

Detailed description

usernames should be created in a type-safe fashion that includes the full e-mail address.

I always run this before using a user-entered string:
/**
* Replace any potentially unsafe file system characters with "_".
*
* @param filenameNoPath A potential filename (without the drive and/or path)
*/
public static String forceSafeFilename(String filenameNoPath) {
try {
filenameNoPath = filenameNoPath.replaceAll("\\*", "%47"); // * is safe for URLS, but not for file names
return java.net.URLEncoder.encode(filenameNoPath,"UTF-8");
} catch (Exception e){
throw new RuntimeException("UTF-8 not supported!");
}
}

Response

No Responses Have Been Posted

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionAccepted As Bug2009-07-31 13:44bennett
status_idOpen2009-07-31 13:44bennett