This repository is under review for potential modification in compliance with Administration directives.
[#3317] usernames for injest accounts are not system unique
Date: 2009-01-14 13: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 |
| Resolution | Accepted As Bug | 2009-07-31 20:44 | bennett |
| status_id | Open | 2009-07-31 20:44 | bennett | |
|