Error with .7z file "The file content is encrypted, but currently not supported"

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Start with the archive_read and archive_extract entry points, including the failure reported at archive_extract.cpp:21, and compare their 7zip handling on the RStudio server versus desktop 7-zip. Reproduce with a non-password-protected .7z file if possible; done means identifying the cause and making reading or extraction work, or documenting the limitation.

Written by the indexing model from the issue text.

Description

I have a .7z file that is not password protected that cannot be read or extracted with archive on an RStudio server, but is extracted without issue on a desktop with 7-zip.

Running archive("FILE.7z"), correctly prints the file contents (a folder with 2 csv files), but running read.csv(archive_read("FILE.7z", file = 2, format = "7zip")) generates "Error in open.connection(file, "rt") : The file content is encrypted, but currently not supported". Running archive_extract("FILE.7z") generates "Error: archive_extract.cpp:21 archive_read_data_block(): The file content is encrypted, but currently not supported".

Unfortunately I cannot share the example as the data must remain on secure servers, but I was wondering if there is a known issue and/or solution for reading and extracting .7z files on a server? Thank you!

Dominant language
C++
Stars
148
Forks
18
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/archive

All issues in r-lib/archive

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.