From 9748541e19541376a64fa5ce1f13164a4372ccfb Mon Sep 17 00:00:00 2001 From: Thanh Lee Date: Fri, 22 Nov 2024 11:51:37 +0000 Subject: [PATCH] add lowercasing the job text --- .../java/cloudgene/mapred/server/services/JobService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cloudgene/mapred/server/services/JobService.java b/src/main/java/cloudgene/mapred/server/services/JobService.java index 49e22c6c..382fefe8 100644 --- a/src/main/java/cloudgene/mapred/server/services/JobService.java +++ b/src/main/java/cloudgene/mapred/server/services/JobService.java @@ -369,8 +369,8 @@ public String increaseRetireDate(AbstractJob job, int days) { public String createId(String username, String pipelineName) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd-HHmmss-SSS"); - username = username.replaceAll("\\s+", "-"); - pipelineName = pipelineName.replaceAll("\\s+", "-"); + username = username.toLowerCase().replaceAll("\\s+", "-"); + pipelineName = pipelineName.toLowerCase().replaceAll("\\s+", "-"); return username + "-" + pipelineName + "-" + sdf.format(new Date()); }