From eb3fe308062b841270a630c9041d0836ae359604 Mon Sep 17 00:00:00 2001 From: JhonSGIzquierdo <53907237+MetalPrime@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:05:18 -0500 Subject: [PATCH 1/5] bug fix(phantom bug): add additional validation to avoid bug --- .../WEB-INF/crp/views/projects/projectDeliverable.ftl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectDeliverable.ftl b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectDeliverable.ftl index b2a7b4e99e..54dcf84f62 100644 --- a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectDeliverable.ftl +++ b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/projectDeliverable.ftl @@ -97,11 +97,11 @@ - - - - - + + + + + From 3cd97ba99df19f25ba656136a28b110b89c56290 Mon Sep 17 00:00:00 2001 From: Kenji Tanaka Date: Fri, 13 Sep 2024 14:35:49 -0500 Subject: [PATCH 2/5] :wrench: chore(Clone): Update Clone method --- .../org/cgiar/ccafs/marlo/utils/Clone.java | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/marlo-web/src/main/java/org/cgiar/ccafs/marlo/utils/Clone.java b/marlo-web/src/main/java/org/cgiar/ccafs/marlo/utils/Clone.java index 3596209ee9..da02f4faee 100644 --- a/marlo-web/src/main/java/org/cgiar/ccafs/marlo/utils/Clone.java +++ b/marlo-web/src/main/java/org/cgiar/ccafs/marlo/utils/Clone.java @@ -26,16 +26,35 @@ public class Clone { + /** + * NOTE: This variable (projectRoot) should be changed according to the local project location on each developer's + * machine. + */ + public static String projectRoot = "D:\\MARLO-PROJECT - 4.5\\"; + public static String pathdao = - "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao"; + projectRoot + "MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao"; public static String pathmysqldao = - "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao\\mysql"; + projectRoot + "MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao\\mysql"; public static String pathmanager = - "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager"; + projectRoot + "MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager"; public static String pathmodel = - "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\model"; + projectRoot + "MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\model"; public static String pathmanagerimpl = - "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager\\impl"; + projectRoot + "MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager\\impl"; + + /* + * public static String pathdao = + * "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao"; + * public static String pathmysqldao = + * "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\dao\\mysql"; + * public static String pathmanager = + * "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager"; + * public static String pathmodel = + * "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\model"; + * public static String pathmanagerimpl = + * "D:\\MARLO-PROJECT - 4.5\\MARLO\\marlo-data\\src\\main\\java\\org\\cgiar\\ccafs\\marlo\\data\\manager\\impl"; + */ // Copy the source file to target file. // In case the dst file does not exist, it is created From af982d5d0e9d01dedc850333bf9d22ff486c4c69 Mon Sep 17 00:00:00 2001 From: Kenji Tanaka Date: Thu, 3 Oct 2024 13:01:21 -0500 Subject: [PATCH 3/5] :wrench: chore(validate): Try to validate null parameters --- .../webapp/WEB-INF/crp/views/projects/menu-projects.ftl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/menu-projects.ftl b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/menu-projects.ftl index b016268358..9dcbacb640 100644 --- a/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/menu-projects.ftl +++ b/marlo-web/src/main/webapp/WEB-INF/crp/views/projects/menu-projects.ftl @@ -110,7 +110,12 @@