diff --git a/opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/JobManager.java b/opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/JobManager.java index b8b9ba55ba..8816e30f01 100644 --- a/opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/JobManager.java +++ b/opencga-catalog/src/main/java/org/opencb/opencga/catalog/managers/JobManager.java @@ -379,7 +379,6 @@ private void autoCompleteNewJob(String organizationId, Study study, Job job, Jwt job.setInput(Collections.emptyList()); } else { // We only check input files if the job does not depend on other job that might be creating the necessary file. - List inputFiles = getJobInputFilesFromParams(study.getFqn(), job, tokenPayload.getToken()); job.setInput(inputFiles); } @@ -458,9 +457,10 @@ public List getJobInputFilesFromParams(String study, Job job, String token // We look for files in the dynamic params Map dynamicParams = (Map) entry.getValue(); for (Map.Entry subEntry : dynamicParams.entrySet()) { - if (subEntry.getKey().toLowerCase().endsWith(fileParamSuffix)) { + String subEntryKey = subEntry.getKey().toLowerCase(); + if (!subEntryKey.contains("profile") && subEntryKey.endsWith(fileParamSuffix)) { // We assume that every variable ending in 'file' corresponds to input files that need to be accessible in - // catalog + // catalog (except words such as 'profile') try { // Validate the user has access to the file File file = catalogManager.getFileManager().get(study, (String) subEntry.getValue(),