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

Unarchive function not working for zipped directories in Streaming Integrator #2278

Closed
ug205 opened this issue Nov 21, 2023 · 0 comments · Fixed by siddhi-io/siddhi-io-file#158

Comments

@ug205
Copy link

ug205 commented Nov 21, 2023

Description

Unarchive function not working for zipped directories in Streaming Integrator

Steps to Reproduce

Create zipped directory with the following directory structure

Myfolder/
SFTP_Rename.siddhi
SFTP_Siddhi.siddhi
Yourfolder/
Yourfolder/hello/

Try to use the unarchive function on it via a siddhi application, sample code block below:

from singlefileStream#file:unarchive('/Users/Documents/Support/source', '/Users/Documents/Support/destination/')#log('unarchive_complete')
insert into finalstream;

Observe the following error

ERROR {io.siddhi.core.stream.StreamJunction} - Error in '2_Search_Unarchive_SiddhiApp' after consuming events from Stream 'singlefileStream', Exception occurred when getting the decompressing file: /Users/Documents/Support/source/Myfolder.zip. Hence, dropping event 'Event{timestamp=1699608841879, data=[s, s], isExpired=false}' io.siddhi.core.exception.SiddhiAppRuntimeException: Exception occurred when getting the decompressing file:

Affected Component

SI

Version

1.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant