LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-08-2014, 07:11 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Firefox unzips tar.gz Files on Download


An annoyance I've had for some time when downloading SBo packages and SlackBuilds is that the package.tar.gz file gets unzipped when it's downloaded (not the source file, just the package file).

I've fiddled with Firefox Preferences and Tar archive is to to Save File and Gzip archive is set to Save File and I'm wondering what the heck is going on.

It's not a big deal, I know that the package file is unzipped (for example, yasm.tar.gz) and I just use [I]tar xvf/I]) where the source file (say, yasm-1.1.0.tar.gz) does not get unzipped.

Is there some setting somewhere that I've missed?
 
Old 11-08-2014, 08:49 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Hi, former colleague @ AMC

I came across the same issue, I think (or reverse?).

HTH,

Last edited by Didier Spaier; 11-08-2014 at 09:30 AM.
 
Old 11-08-2014, 08:52 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
[duplicate post]
 
Old 11-08-2014, 09:47 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by Didier Spaier View Post
Hi, former colleague @ AMC

I came across the same issue, I think (or reverse?).
HTH,
Well, hi yourself (and thanks for the link)

I've more or less decided (after reading the link) to leave the thing alone and just deal with it.

The odd thing is that this seems to be size related (maybe, maybe not) -- the SlackBuild file is small (by comparison to anything else, particularly the source code) and, maybe, there's something or other somewhere or other that just says, "OK, it's small, gunzip it." It's a feature. But it really isn't gunzipped because the file name doesn't lose the ".gz."

Oh, well.

Thanks for the input.
 
Old 11-09-2014, 09:43 AM   #5
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Rep: Reputation: Disabled
1. Are you sure its not an addon?

2. Have you checked preference > application? Is there an entry related to the type of files firefox is unzipping? If yes then there must be a drop down menu for further options to disable it. I am talking from firefox 33
 
Old 11-09-2014, 01:34 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I use wget in a designated directory. Just copy paste the URL into wget with the -c flag and it works just as good as any browser.

Yes it could be a add-on or it could be caused by setting a default flag to the browser downloader.
 
Old 11-09-2014, 04:11 PM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by fuser312 View Post
1. Are you sure its not an addon?
Pretty sure: only add-ons are Adblock Plus, EPUBReader and NoScript.
Quote:
Originally Posted by fuser312 View Post
1
2. Have you checked preference > application? Is there an entry related to the type of files firefox is unzipping? If yes then there must be a drop down menu for further options to disable it. I am talking from firefox 33
OK, so why does filenmae.tar.gz (the SlackBuild) get unzipped and sourcename.tar.gz not get unzipped? And the preferences are set to "save file" and "ask me about gzip."

Don't make no sense to me.
 
Old 11-09-2014, 04:13 PM   #8
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by ReaperX7 View Post
I use wget in a designated directory. Just copy paste the URL into wget with the -c flag and it works just as good as any browser.
I'm not aware that SlackBuilds.org has an ftp (which would also be wget) option?

Gotta look into that, thanks.
 
Old 11-09-2014, 09:13 PM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
There's a default setting in about:config

Code:
network.http.accept-encoding (gzip, deflate)
If changed from (gzip, deflate) into () does it still happen?
 
Old 11-09-2014, 10:16 PM   #10
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Quote:
Originally Posted by elcore View Post
There's a default setting in about:config

Code:
network.http.accept-encoding (gzip, deflate)
If changed from (gzip, deflate) into () does it still happen?
I use this ( the empty setting ) and now sites that I previously had downloaded doubly gzip'd files from, now download normal tarballs. No adverse effects to other aspects of browsing have I noticed. This issue with gunzip'ing tarballs I have never seen before, on SlackBuilds.org or any other site... only tarballs getting gzip'd a second time. I think the second gzip of the file was by the server; usually sourceforge was the biggest problem for me with this. I apologize if this is unrelated.
 
2 members found this post helpful.
Old 11-10-2014, 09:46 PM   #11
frankiej
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 29

Rep: Reputation: 24
Quote:
Originally Posted by elcore View Post
There's a default setting in about:config

Code:
network.http.accept-encoding (gzip, deflate)
If changed from (gzip, deflate) into () does it still happen?
The network.http.accept-encoding shouldn't affect the download of files. Its purpose is to tell the web server what encoding your browser will accept for content files (html, js, css, etc...) transferred to the browser. While slackbuilds.org doesn't use this, go to Google and you can see the individual files being transferred in a compressed manner (you can look in the response header). I said "shouldn't" because you indicate that there is a behavior difference.

@tronayne, I got curious and looked at yasm on slackbuilds.org. I can see why you are seeing a difference. I cannot explain the difference, but I can point out what I believe the trigger is to you.

The yasm.tar.gz has the following in its response headers when I go to download it:

Content-Encoding:"gzip"
Content-Type:"application/x-gzip"

The yasm-1.1.0.tar.gz has the following in its response headers (keep in mind this is coming from a different site):

Content-Type:"application/octet-stream"

There is no Content-Encoding header in the response from that site. The site is also an Nginx server as opposed to Apache on slackbuilds.org. although I don't believe that matters as much as the Content-Type being returned. So maybe I am wrong about the affect that the accept-encoding config item is having, but I get the same result either way when downloading the file from my Firefox (currently 33.1).

Regardless, the Content-Type is more than likely the trigger that is causing the different behavior for you.
 
Old 11-10-2014, 10:10 PM   #12
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by frankiej View Post
The yasm.tar.gz has the following in its response headers when I go to download it:

Content-Encoding:"gzip"
Content-Type:"application/x-gzip"
An that's wrong. So I think the server is misconfigured.

It could either serve the .tar archive via
Code:
Content-Encoding: gzip
Content-Type: application/octet-steam
Because .tar doesn't have an officially registered MIME type. Or better just the .tar.gz using
Code:
Content-Type: application/gzip
which is the correct MIME type for .gz files.

IMHO for file transfers Content-Encoding shouldn't be used at all.
 
Old 11-11-2014, 05:32 AM   #13
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
So what I'm getting is that the SlackBuilds.org Apache server is not configured correctly? Hmm.

OK, I'll write off to them and see what may be what -- the odd thing is that only the SlackBuild file is unzipped (but apparently not with gunzip because the file name does not lose the ".gz" at the end, it's simply a tar file with a ".gz".

Thanks for the input and I'll get back with whatever I may find out.
 
Old 11-11-2014, 08:24 PM   #14
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
It's a combination: the server sending content-encoding, and something is weird in your firefox. The content-encoding sent by Slackbuilds.org is not wrong - I think it is in the default Apache config - and it doesn't affect most of us. But other servers don't send it. I think sourceforge download mirrors don't send it. Unfortunately, I don't know what is different in your Firefox that is doing this. (I assume it is firefox, but it could also be something like a proxy server or even an anti-virus thing that is doing the decompress.)
 
Old 11-11-2014, 08:38 PM   #15
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by ljb643 View Post
It's a combination: the server sending content-encoding, and something is weird in your firefox. The content-encoding sent by Slackbuilds.org is not wrong
It is wrong, because it says that content was encoded by the web server and should be decoded by the browser. Which is exactly what Firefox does. Firefox then saves a tar.gz file, because the web server told the browser, the decoded content itself is of MIME type application/x-gzip, which is wrong either.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] text mode webrowser with with download option for files such as .tar.gz or exe rtz Linux - Software 3 10-26-2012 09:20 PM
How to configure Firefox to download .iso files, not try to open them taylorkh Linux - Software 4 08-24-2011 05:35 PM
How to get firefox to open downloaded files on the its download manager itself yuchankit Slackware 10 05-03-2008 12:19 PM
Where to download tar files to? Dalriada Linux - Newbie 2 04-09-2004 04:37 PM
What unzips a .bz2 file? rl5 Linux - Newbie 2 03-22-2004 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration