Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The namespace in UploadFiles is optional but the task fails if namespace is not provided #4517

Closed
anna-geller opened this issue Aug 1, 2024 · 1 comment · Fixed by #4518
Assignees
Labels
bug Something isn't working kind/quick-win Seems to be quick to do

Comments

@anna-geller
Copy link
Member

Describe the issue

the namespace should be optional, inferred from the flow's namespace

error:

Cannot invoke “String.equals(Object)” because “namespace” is null
2024-08-01 19:26:31.134java.lang.NullPointerException: Cannot invoke “String.equals(Object)” because “namespace” is null
 at io.kestra.core.storages.InternalStorage.namespace(InternalStorage.java:75)
 at io.kestra.plugin.core.namespace.UploadFiles.run(UploadFiles.java:158)
 at io.kestra.plugin.core.namespace.UploadFiles.run(UploadFiles.java:32)
 at io.kestra.core.runners.WorkerTaskThread.doRun(WorkerTaskThread.java:76)
 at io.kestra.core.runners.AbstractWorkerThread.run(AbstractWorkerThread.java:57)

reproducer:

id: add_file
namespace: company.team

inputs:
  - id: python_script
    type: FILE

tasks:
  - id: py
    type: io.kestra.plugin.core.namespace.UploadFiles
    # namespace: company.team 
    filesMap:
      main.py: "{{ inputs.python_script }}"

Environment

  • Kestra Version:
  • Operating System (OS/Docker/Kubernetes):
  • Java Version (if you don't run kestra in Docker):
@anna-geller anna-geller added the bug Something isn't working label Aug 1, 2024
@anna-geller
Copy link
Member Author

@Skraye you can batch it together with #4516 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kind/quick-win Seems to be quick to do
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants