tapis-project / tapis-java

Texas Advanced Computing Center APIs
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

Jobs: OPTIONAL file input results in error #113

Open scblack321 opened 1 year ago

scblack321 commented 1 year ago

From Sal: I have a question r.e. fileInputs. If I want to present an OPTIONAL field, and leave the field blank in the app definition, either by setting "sourceUrl": null, or leaving it out entirely, I get this error if I do not specify that input in the job submission:

tapipy.errors.InternalServerError: message: Cannot invoke "String.startsWith(String)" because the return value of "edu.utexas.tacc.tapis.jobs.model.submit.JobFileInput.getSourceUrl()" is null

App hello-world in tenant portals. From app definition:

"fileInputs": [ { "name": "File to modify", "description": "The full greeting will be appended to the target .txt file", "inputMode": "OPTIONAL", "autoMountLocal": true, "sourceUrl": null, "targetPath": "in.txt" } ],