Closed sxored closed 3 years ago
please specify exactly what you did, especially what archive format was used
test sample zip file with 7z
$ cd /tmp/ && wget -vvcS 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-zip-file.zip'
--2021-03-29 12:58:07-- https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-zip-file.zip
Resolving www.learningcontainer.com (www.learningcontainer.com)... 104.21.84.74, 172.67.188.164, 2606:4700:3033::ac43:bca4, ...
Connecting to www.learningcontainer.com (www.learningcontainer.com)|104.21.84.74|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Mon, 29 Mar 2021 06:58:09 GMT
Content-Type: application/zip
Content-Length: 380
Connection: keep-alive
Set-Cookie: __cfduid=d914f11c300631ba2462157cd077c96de1617001088; expires=Wed, 28-Apr-21 06:58:08 GMT; path=/; domain=.learningcontainer.com; HttpOnly; SameSite=Lax; Secure
Vary: X-Forwarded-Proto,Accept-Encoding
Last-Modified: Sat, 12 Sep 2020 05:27:15 GMT
ETag: "17c-5af170ddfe21f"
Cache-Control: max-age=86400
CF-Cache-Status: MISS
Accept-Ranges: bytes
cf-request-id: 091e5f9dca00003a8fc9b35000000001
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Report-To: {"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?s=TBgIrtvUzqJNBdUw6pAB2bxesKC5LC%2F8wtRcp9S8W87SuuwSFkbyXvlMr2qQHCWgJc1iakEmuvcZu41MB5LGmKmoWpq3cnZNa34twdvMaF6PW0hda1LJQe0m"}],"group":"cf-nel","max_age":604800}
NEL: {"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 63773542de413a8f-DME
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
Length: 380 [application/zip]
Saving to: ‘sample-zip-file.zip’
sample-zip-file.zip 100%[=====================================================================================================================>] 380 --.-KB/s in 0s
2021-03-29 12:58:08 (7.44 MB/s) - ‘sample-zip-file.zip’ saved [380/380]
$ 7z l sample-zip-file.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (906E9),ASM,AES-NI)
Scanning the drive for archives:
1 file, 380 bytes (1 KiB)
Listing archive: sample-zip-file.zip
--
Path = sample-zip-file.zip
Type = zip
Physical Size = 380
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2020-05-05 18:57:43 ..... 282 182 sample.txt
------------------- ----- ------------ ------------ ------------------------
2020-05-05 18:57:43 282 182 1 files
$ ls -la sample.txt
ls: cannot access 'sample.txt': No such file or directory
$ 7z x sample-zip-file.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (906E9),ASM,AES-NI)
Scanning the drive for archives:
1 file, 380 bytes (1 KiB)
Extracting archive: sample-zip-file.zip
--
Path = sample-zip-file.zip
Type = zip
Physical Size = 380
Everything is Ok
Size: 282
Compressed: 380
$ ls -la sample.txt
-rw-r--r-- 1 user user 282 2020-05-05 18:57 sample.txt
$ rm -v sample.txt
removed 'sample.txt'
$ ls -la sample.txt
ls: cannot access 'sample.txt': No such file or directory
test archive extraction with far2l
$ "directory/far2l" --libexec "directory/far2l/Plugins/multiarc/plug/multiarc.far-plug-mb" BuiltinMain libarch x /tmp/sample-zip-file.txt -- "sample.txt"
Extracted: 'sample.txt' -> './sample.txt'
check result in shell
$ cd /tmp/1/
$ ls -la sample.txt
-rw-r--r-- 1 user user 282 2021-03-29 13:08 sample.txt
sample-zip-file.zip is attached
thank you !
Is issue linked with libarchive ?