The print job file name was not properly parsed. This resulted
in incorrect mapping from file to print job, thus deleting the
file when we do not have to.
bug:
11069354
Change-Id: I7b8a7a7f98dd77b34119f2a9cd16a6ec3c22b63b
if (fileForJobMap == null) {
fileForJobMap = new ArrayMap<PrintJobId, File>();
}
- String printJobIdString = file.getName().substring(0,
- PRINT_JOB_FILE_PREFIX.length());
+ String printJobIdString = file.getName().substring(
+ PRINT_JOB_FILE_PREFIX.length(),
+ file.getName().indexOf('.'));
PrintJobId printJobId = PrintJobId.unflattenFromString(
printJobIdString);
fileForJobMap.put(printJobId, file);