Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Jobs: OPTIONAL file input results in error #113

Open
scblack321 opened this issue Dec 21, 2022 · 0 comments
Open

Jobs: OPTIONAL file input results in error #113

scblack321 opened this issue Dec 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@scblack321
Copy link
Collaborator

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"
}
],

@scblack321 scblack321 added the bug Something isn't working label Dec 21, 2022
@scblack321 scblack321 self-assigned this Dec 21, 2022
@richcar58 richcar58 assigned richcar58 and unassigned scblack321 Jan 9, 2023
@richcar58 richcar58 moved this from To Do to Develop in Tapis Project Beta Board Jan 10, 2023
@richcar58 richcar58 moved this from Develop to Done/Production in Tapis Project Beta Board Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants