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

Error using uncompress_archive_file on 7zip archive #46

Closed
hohav opened this issue Jan 17, 2021 · 5 comments · Fixed by #48
Closed

Error using uncompress_archive_file on 7zip archive #46

hohav opened this issue Jan 17, 2021 · 5 comments · Fixed by #48

Comments

@hohav
Copy link

hohav commented Jan 17, 2021

I'm getting this error when trying to extract a single file from a 7zip archive:

Error: Extraction("Current client reader does not support seeking a device")

That message originates from libarchive. There's a possibly-related issue on their tracker, but I tried patching seek capability into archive_read_open_FILE with no change.

I tried inspecting the compress-tools source, but couldn't identify the libarchive code path that triggers this error. Until I know that, I can't formulate a proper bug report for libarchive. Any guidance would be appreciated.

@otavio
Copy link
Member

otavio commented Jan 17, 2021

Is there an archive we can use to reproduce the issue?

@hohav
Copy link
Author

hohav commented Jan 17, 2021

Github wouldn't let me upload a 7z, so I had to make a repo:

https://github.com/hohav/7zip-test/blob/master/foo.7z

The archive contains a single folder foo, with a file bar inside it. I created it with 7z a foo.7z foo.

@otavio
Copy link
Member

otavio commented Jan 19, 2021

@hohav we reproduced this. @Asakiz is looking at this issue.

@Asakiz Asakiz linked a pull request Feb 9, 2021 that will close this issue
otavio added a commit that referenced this issue Feb 10, 2021
There are some archive formats which require the seeking support, such
as 7z archives.

This commit add support for the seeking of those archives, fixing 7z
uncompressing.

Fixes: #46.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: asakiz <asakizin@gmail.com>
otavio added a commit that referenced this issue Feb 10, 2021
There are some archive formats which require the seeking support, such
as 7z archives.

This commit add support for the seeking of those archives, fixing 7z
uncompressing.

Fixes: #46.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: asakiz <asakizin@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
otavio added a commit that referenced this issue Feb 11, 2021
There are some archive formats which require the seeking support, such
as 7z archives.

This commit add support for the seeking of those archives, fixing 7z
uncompressing.

Fixes: #46.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: asakiz <asakizin@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
otavio added a commit that referenced this issue Feb 11, 2021
There are some archive formats which require the seeking support, such
as 7z archives.

This commit add support for the seeking of those archives, fixing 7z
uncompressing.

Fixes: #46.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: asakiz <asakizin@gmail.com>
otavio added a commit that referenced this issue Feb 11, 2021
There are some archive formats which require the seeking support, such
as 7z archives.

This commit add support for the seeking of those archives, fixing 7z
uncompressing.

Fixes: #46.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: asakiz <asakizin@gmail.com>
@otavio
Copy link
Member

otavio commented Feb 11, 2021

@hohav we fixed the issue. Could you give this a try and confirm it works fine for you?

@hohav
Copy link
Author

hohav commented Feb 13, 2021

Works now. Thank you!

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

Successfully merging a pull request may close this issue.

2 participants