Downloaded .tar.gz file is not recognised by tar command How can this issue be reproduced?
Download the file from the JFormDesigner site, then try to untar it like so:
tar -xvzf JFormDesigner-8.0.2-linux.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
In fact I downloaded this file using Firefox and the file untared fine.
Interestingly the file sizes are totally different for each brower:
-rw-rw---- 1 francis francis 87M Feb 21 09:55 JFormDesigner-8.0.2-linux_BraveDownload.tar.gz
-rw-rw---- 1 francis francis 43M Feb 21 09:53 JFormDesigner-8.0.2-linux_FirefoxDownload.tar.gz
Expected result:
Should untar
Brave Version( check About Brave):
Version 1.47.186 Chromium: 109.0.5414.119 (Official Build) (64-bit)
Additional Information:
Running on Linux Mint 20.2
Thanks @JimB1 for giving me an idea!
Here are the File results:
file JFormDesigner-8.0.2-linux_BraveDownload.tar.gz
JFormDesigner-8.0.2-linux_BraveDownload.tar.gz: POSIX tar archive
file JFormDesigner-8.0.2-linux_FirefoxDownload.tar.gz
JFormDesigner-8.0.2-linux_FirefoxDownload.tar.gz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT), original size modulo 2^32 90583040
Ah Ha!! Brave has gunzipped the file, but not changed the file extension.
I renamed the file without the .gz extension and it untarred fine suing this:
tar -xvf JFormDesigner-8.0.2-linux_BraveDownload.tar
JFormDesigner/
JFormDesigner/redist/
....... and so on.......
I should have thought of that!
However why does Brave gunzip it???
and brave download the correct file and i even checked it’s checksum and it’s match
another notice from your site that the download in brave did not detect the file size despite it regonizted in firefox
now the question is it brave or chrome issue or the issue on the site
do you have chrome or any other chrome based browser?
Many thanks @JimB1 for sending the link. I think that explains the problem.
I have looked at the JformDesigner Download Page Headers but there is no content-encoding in the header.
Regards
hi @themetman if you check the network you will find it try to download 2 files the first one with Content-Type: text/html but the network return with error 302 which is file not found but the one with Content-Encoding: gzip return the 200 and that the one being downloaded
by the way in firefox the first file also return 302 and the second on is 200