Recent answers to Jar files from GitLab are being turned into .jar.zip fileshttps://support.mozilla.org/en-US/questions/13789682022-06-11T08:08:06-07:00I am not aware of any built-in setting to override this. I do have an add-on that can help, if you w2022-06-11T08:08:06-07:00jscher2000https://support.mozilla.org/en-US/questions/1378968#answer-1511618<p>I am not aware of any built-in setting to override this. I do have an add-on that can help, if you would consider that.
</p><p>Here's how you set up the content-type override for .jar files:
</p><p>(1) Install the extension from the Mozilla Add-ons site
</p>
<ul><li> AMO page: <a href="https://addons.mozilla.org/firefox/addon/content-type-fixer/" rel="nofollow">https://addons.mozilla.org/firefox/addon/content-type-fixer/</a>
</li><li> My help page: <a href="https://www.jeffersonscher.com/ext/content-type-fixer.html" rel="nofollow">https://www.jeffersonscher.com/ext/content-type-fixer.html</a>
</li></ul>
<p>(2) Click the new Zzzz button on the toolbar to wake it up and start listening/fixing requests -- see the first screenshot below
</p><p>(3) Trigger the download that is causing the problem; the add-on will log the request
</p><p>(4) Open the log to add a new rule -- see the first screenshot below
</p><p>(5) On the line with the .jar request, click the Add button and then paste in this type:
</p><p><strong>application/java-archive</strong>
</p><p>and click the Save Content-Type button -- see the second screenshot below
</p><p>(6) Try the download again and Firefox should save it as a .jar file with whatever icon is set up for those at the system level -- see the third screenshot below
</p><p>Success?
</p>
<blockquote><img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2022-06-11-15-04-40-4a1b2c.png"></blockquote>
<blockquote><img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2022-06-11-15-04-47-ee9931.png"></blockquote>
<blockquote><img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2022-06-11-15-04-54-d489cf.png"></blockquote>Dropa said
See screenshot of the download option.
Mine looks the same as yours. You can even see in2022-06-05T19:00:54-07:00alvarado_alihttps://support.mozilla.org/en-US/questions/1378968#answer-1510370<em><p>Dropa <a href="#answer-1510325" rel="nofollow">said</a></p></em>
<blockquote>See screenshot of the download option.
</blockquote>
<p>Mine looks the same as yours. You can even see in the window that it says the filetype is "Compressed (zipped) folder" instead of "Executable jar file". The issue is after pressing OK.
</p>Dropa said
No download problem. See screenshot of the download option.
Changing it to "ask first" h2022-06-05T18:52:55-07:00alvarado_alihttps://support.mozilla.org/en-US/questions/1378968#answer-1510369<em><p>Dropa <a href="#answer-1510325" rel="nofollow">said</a></p></em>
<blockquote>No download problem. See screenshot of the download option.
</blockquote>
<p>Changing it to "ask first" had no effect. You can even see that it says "compressed zip folder" in the window and has the zip icon. Mine even has the Java logo, but after pressing OK it still becomes a zip.
</p><p>I've attached a reference.
Edit: I believe the reference may be too large, here is an <a href="https://cdn.discordapp.com/attachments/815160796640313366/983292494051700786/jar.gif" rel="nofollow">alt link</a>
</p>Ah yes, that's my report, I forgot to link it above. I'll just wait and see what happens then. Thank2022-06-05T09:06:19-07:00alvarado_alihttps://support.mozilla.org/en-US/questions/1378968#answer-1510294<p>Ah yes, that's my report, I forgot to link it above. I'll just wait and see what happens then. Thanks
</p>For reference:
1772758 - GitLab jar files are being renamed to .jar.zip
See also:
1746052 - Unify2022-06-05T07:19:33-07:00cor-elhttps://support.mozilla.org/en-US/questions/1378968#answer-1510287<p>For reference:
</p>
<ul><li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1772758" rel="nofollow">1772758</a> - GitLab jar files are being renamed to .jar.zip
</li></ul>
<p>See also:
</p>
<ul><li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1746052" rel="nofollow">1746052</a> - Unify ways to select and validate filenames when saving
</li></ul>
<p>(<i>please do not comment in bug reports<br><a href="https://bugzilla.mozilla.org/page.cgi?id=etiquette.html" rel="nofollow">https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</a></i>)
</p>Thanks for the reply. To update this post, I also made a report on bugzilla which was confirmed by o2022-06-05T06:58:45-07:00alvarado_alihttps://support.mozilla.org/en-US/questions/1378968#answer-1510282<p>Thanks for the reply. To update this post, I also made a report on bugzilla which was confirmed by others.
</p><p>content-type is indeed labelled as "application/zip"
content-disposition is simply "<em>attachment; filename="(Jar name).jar"</em>
</p><p><br>
Checking the content-type with edge returns "text/html".
</p>How does GitLab send these files if you check this in the Network Monitor (content-type and content-2022-06-05T03:11:24-07:00cor-elhttps://support.mozilla.org/en-US/questions/1378968#answer-1510222<p>How does GitLab send these files if you check this in the Network Monitor (content-type and content-disposition headers)&nbsp;?
</p>
<ul><li><a href="https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor" rel="nofollow">https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor</a>
</li></ul>