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

Z compression in FileCompress task is not working #60

Open
shrutimantri opened this issue Feb 17, 2024 · 0 comments
Open

Z compression in FileCompress task is not working #60

shrutimantri opened this issue Feb 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@shrutimantri
Copy link
Contributor

Expected Behavior

The given flow example with Z compress should work, and successfully compress the file using Z compression.

id: "file_compress"
type: "io.kestra.plugin.compress.FileCompress"
from: "{{ inputs.files }}"
compression: Z

Actual Behaviour

The given flow example on this page errors out with the following error:

2024-02-17 16:48:47.942Unknown compression 'Z'
2024-02-17 16:48:47.942java.lang.IllegalArgumentException: Unknown compression 'Z'
	at io.kestra.plugin.compress.AbstractTask.compressorOutputStream(AbstractTask.java:106)
	at io.kestra.plugin.compress.FileCompress.run(FileCompress.java:51)
	at io.kestra.plugin.compress.FileCompress.run(FileCompress.java:20)
	at io.kestra.core.runners.Worker$WorkerThread.run(Worker.java:729)

Steps To Reproduce

  1. Create the flow with the following yaml:
id: compression-1
namespace: company.team
tasks:
  - id: httpdownload
    type: io.kestra.plugin.fs.http.Download
    uri: "https://raw.githubusercontent.com/kestra-io/datasets/main/csv/products.csv"
  - id: "file_compress"
    type: "io.kestra.plugin.compress.FileCompress"
    from: "{{ outputs.httpdownload.uri }}"
    compression: Z
  1. Execute this flow.

Environment Information

  • Kestra Version: 0.14.4
  • Plugin version: 0.14.4
  • Operating System (OS / Docker / Kubernetes): Docker
  • Java Version (If not docker): N/A

Example flow

id: compression-1
namespace: company.team
tasks:
  - id: httpdownload
    type: io.kestra.plugin.fs.http.Download
    uri: "https://raw.githubusercontent.com/kestra-io/datasets/main/csv/products.csv"
  - id: "file_compress"
    type: "io.kestra.plugin.compress.FileCompress"
    from: "{{ outputs.httpdownload.uri }}"
    compression: Z
@shrutimantri shrutimantri added the bug Something isn't working label Feb 17, 2024
@anna-geller anna-geller added this to the v0.20.0 milestone Feb 19, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Jun 10, 2024
@Ben8t Ben8t removed this from the v0.20.0 milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

3 participants