fix for file upload
package com.thinkbiganalytics.feedmgr.rest.controller;
import com.google.common.collect.Lists;
+import com.mifmif.common.regex.Generex;
import com.thinkbiganalytics.discovery.schema.QueryResult;
import com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata;
import com.thinkbiganalytics.feedmgr.rest.model.FeedSummary;
@@ -505,8 +506,8 @@ public class FeedRestController {
}
File tempTarget = File.createTempFile("kylo-upload", "");
try {
- // Generex fileNameGenerator = new Generex(regexFileFilter);
- String fileName = "";//fileNameGenerator.random();
+ Generex fileNameGenerator = new Generex(regexFileFilter);
+ String fileName = fileNameGenerator.random();
// Cleanup oddball characters generated by generex
fileName = fileName.replaceAll("[^A-Za-z0-9\\.\\_\\+\\%\\-\\|]+", "\\.");
