Bug 197811 - Incorrect mime-type provided for some files
Summary: Incorrect mime-type provided for some files
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Website (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 23:30 UTC by Mikhail T.
Modified: 2019-12-22 11:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail T. 2015-02-18 23:30:38 UTC
Certain files -- such as Release Notes of the early FreeBSD-releases -- are served with the catch-all "octet-stream" type, instead of text/plain. For example:

https://www.freebsd.org/releases/1.1.5/RELNOTES.FreeBSD
https://www.freebsd.org/releases/1.1/RELNOTES.FreeBSD

% HEAD https://www.freebsd.org/releases/1.1/RELNOTES.FreeBSD
200 OK
Connection: close
Date: Wed, 18 Feb 2015 23:27:56 GMT
Via: 1.1 wfe0.ysv.FreeBSD.org
Age: 0
ETag: "54e51e3e-2878"
Server: ToTheCloud/v0.01
Content-Type: application/octet-stream
Last-Modified: Wed, 18 Feb 2015 23:20:30 GMT
...

They don't have the customary .txt extension, which might be confusing the server. Perhaps, mod_mime (or equivalent) should be added to the server to catch such things.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-12-22 10:50:01 UTC
A commit references this bug:

Author: carlavilla
Date: Sun Dec 22 10:49:09 UTC 2019
New revision: 53705
URL: https://svnweb.freebsd.org/changeset/doc/53705

Log:
  Added the txt extension to old RELNOTES. With that change the RELNOTES can be
  showed in the web browser.

  PR:		197811
  Submitted by:	mi@ALDAN.algebra.com
  Patch by:	carlavilla@
  Differential Revision:	https://reviews.freebsd.org/D22856

Changes:
  head/en_US.ISO8859-1/htdocs/releases/1.1/Makefile
  head/en_US.ISO8859-1/htdocs/releases/1.1/RELNOTES.FreeBSD
  head/en_US.ISO8859-1/htdocs/releases/1.1/RELNOTES.FreeBSD.txt
  head/en_US.ISO8859-1/htdocs/releases/1.1.5/Makefile
  head/en_US.ISO8859-1/htdocs/releases/1.1.5/RELNOTES.FreeBSD
  head/en_US.ISO8859-1/htdocs/releases/1.1.5/RELNOTES.FreeBSD.txt
  head/en_US.ISO8859-1/htdocs/releases/1.1.5/WHATS_NEW-1.1.5
  head/en_US.ISO8859-1/htdocs/releases/1.1.5/WHATS_NEW-1.1.5.txt
  head/en_US.ISO8859-1/htdocs/releases/1.1.5.1/ANNOUNCEMENT.FreeBSD
  head/en_US.ISO8859-1/htdocs/releases/1.1.5.1/ANNOUNCEMENT.FreeBSD.txt
  head/en_US.ISO8859-1/htdocs/releases/1.1.5.1/Makefile
  head/en_US.ISO8859-1/htdocs/releases/1.1.5.1/WHATS_NEW-1.1.5.1
  head/en_US.ISO8859-1/htdocs/releases/1.1.5.1/WHATS_NEW-1.1.5.1.txt
  head/en_US.ISO8859-1/htdocs/releases/index.xml
Comment 2 Sergio Carlavilla Delgado freebsd_committer freebsd_triage 2019-12-22 11:14:36 UTC
Fixed!