Re: Embedded and default MIME types

2019-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/4/19 13:23, Mark Thomas wrote: > On 04/12/2019 18:11, Christopher Schultz wrote: >> Mark, >> >> On 12/4/19 13:02, Mark Thomas wrote: >>> Hi all, >> >>> I was looking at this as an off-shoot of looking at BZ 63985. >> >>> Currently,

Re: Embedded and default MIME types

2019-12-04 Thread Romain Manni-Bucau
+1 to align both, really reduces diff in tests and prod Le mer. 4 déc. 2019 à 19:23, Mark Thomas a écrit : > On 04/12/2019 18:11, Christopher Schultz wrote: > > Mark, > > > > On 12/4/19 13:02, Mark Thomas wrote: > >> Hi all, > > > >> I was looking at this as an off-shoot of looking at BZ 63985.

Re: Embedded and default MIME types

2019-12-04 Thread Mark Thomas
On 04/12/2019 18:11, Christopher Schultz wrote: > Mark, > > On 12/4/19 13:02, Mark Thomas wrote: >> Hi all, > >> I was looking at this as an off-shoot of looking at BZ 63985. > >> Currently, there are 844 MIME mappings in conf/web.xml that are >> not included in Tomcat.DEFAULT_MIME_MAPPINGS.

Re: Embedded and default MIME types

2019-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/4/19 13:02, Mark Thomas wrote: > Hi all, > > I was looking at this as an off-shoot of looking at BZ 63985. > > Currently, there are 844 MIME mappings in conf/web.xml that are > not included in Tomcat.DEFAULT_MIME_MAPPINGS. Fixing it

Embedded and default MIME types

2019-12-04 Thread Mark Thomas
Hi all, I was looking at this as an off-shoot of looking at BZ 63985. Currently, there are 844 MIME mappings in conf/web.xml that are not included in Tomcat.DEFAULT_MIME_MAPPINGS. Fixing it isn't too hard. The 844 figure comes from a unit test I could easily tweak to generate the code needed to

Re: Mime types

2018-11-01 Thread Rémy Maucherat
On Thu, Nov 1, 2018 at 2:34 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Why bother even doing that? File-extension mapping is a poor way to > perform file-type detection (in fact, it is NOT file type detection), > but the spec mandates it, so we are stuck. > > But why bother

Re: Mime types

2018-11-01 Thread Christopher Schultz
to unify all that code, regardless of what else we do. > While we should obviously have support for user configured mime > types in web.xml, as it's the spec, there should be a possibility > to use Files.probeContentType as the fallback when a mime type > isn't found (and maybe also have

Re: Mime types

2018-11-01 Thread Rainer Jung
Am 31.10.2018 um 20:15 schrieb Konstantin Kolinko: ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : ... And then all the badly maintained content from web.xml and the Tomcat class can be deleted. Comments ? 1. "badly maintained content from web.xml" Do not call them "bad". AFAIK, Those are

Re: Mime types

2018-10-31 Thread Rémy Maucherat
On Wed, Oct 31, 2018 at 10:30 PM Igal Sapir wrote: > >> Unless DefaultServlet behaviour is fixed, enabling probeContentType is > >> likely to break my configurations. > > How about allowing to remove a Mime type by mapping it to an empty > string? That way you would only need to override that

Re: Mime types

2018-10-31 Thread Igal Sapir
in startup.Tomcat. While we should obviously have support for user configured mime types in web.xml, as it's the spec, there should be a possibility to use Files.probeContentType as the fallback when a mime type isn't found (and maybe also have an option to disable it ? - although I don't quite

Re: Mime types

2018-10-31 Thread Rémy Maucherat
ardcoded stuff in > > startup.Tomcat. > > > > While we should obviously have support for user configured mime types in > > web.xml, as it's the spec, there should be a possibility to use > > Files.probeContentType as the fallback when a mime type isn't found (and > >

Re: Mime types

2018-10-31 Thread Konstantin Kolinko
ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : > > Hi, > > There are two main contraptions in Tomcat that do (badly ...) extension to > mime type mapping: the shared web.xml and some hardcoded stuff in > startup.Tomcat. > > While we should obviously have support for us

Mime types

2018-10-31 Thread Rémy Maucherat
Hi, There are two main contraptions in Tomcat that do (badly ...) extension to mime type mapping: the shared web.xml and some hardcoded stuff in startup.Tomcat. While we should obviously have support for user configured mime types in web.xml, as it's the spec, there should be a possibility

[Bug 61658] Update mime-mappings for font mime-types to use font/*, per RFC8081

2017-11-17 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61658 Mark Thomas changed: What|Removed |Added Resolution|--- |FIXED

[Bug 61658] New: Update mime-mappings for font mime-types to use font/*, per RFC8081

2017-10-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61658 Bug ID: 61658 Summary: Update mime-mappings for font mime-types to use font/*, per RFC8081 Product: Tomcat 9 Version: 9.0.1 Hardware: PC Status: NEW

[Bug 60851] Add more default compressible MIME types

2017-03-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60851 Mark Thomas changed: What|Removed |Added Resolution|--- |FIXED

[Bug 60851] New: Add more default compressible MIME types

2017-03-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60851 Bug ID: 60851 Summary: Add more default compressible MIME types Product: Tomcat 8 Version: 8.5.11 Hardware: All OS: All Status: NEW Severity

DO NOT REPLY [Bug 51137] Please add MIME types for xslx, xslm, docx, docm since xls and doc already contained in web.xml have been replaced by these.

2011-05-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51137 Rainer Jung rainer.j...@kippdata.de changed: What|Removed |Added Status|NEW |RESOLVED

DO NOT REPLY [Bug 51137] New: Please add MIME types for xslx, xslm, docx, docm since xls and doc already contained in web.xml have been replaced by these.

2011-04-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51137 Bug #: 51137 Summary: Please add MIME types for xslx, xslm, docx, docm since xls and doc already contained in web.xml have been replaced by these. Product: Tomcat 7

DO NOT REPLY [Bug 51137] Please add MIME types for xslx, xslm, docx, docm since xls and doc already contained in web.xml have been replaced by these.

2011-04-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51137 Mark Thomas ma...@apache.org changed: What|Removed |Added OS/Version||All

DO NOT REPLY [Bug 51050] MIME types for m4a m4v files

2011-04-16 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51050 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEW |RESOLVED

DO NOT REPLY [Bug 51050] New: MIME types for m4a m4v files

2011-04-11 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51050 Summary: MIME types for m4a m4v files Product: Tomcat 7 Version: 7.0.12 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2

DO NOT REPLY [Bug 41990] - several mime types missing from conf/web.xml

2007-04-15 Thread bugzilla
--- Additional Comments From [EMAIL PROTECTED] 2007-04-15 13:05 --- I have added these two to svn. They will be included in 5.5.24 and 6.0.12 onwards. If you want to create a patch for any other missing mime-types (I didn't check the link you gave), I'll happily apply it. -- Configure bugmail

DO NOT REPLY [Bug 41990] - several mime types missing from conf/web.xml

2007-03-29 Thread bugzilla
/show_bug.cgi?id=41990 [EMAIL PROTECTED] changed: What|Removed |Added Summary|wmv mime type missing from |several mime types missing |conf/web.xml

DO NOT REPLY [Bug 27617] - ppt and vsd MIME types should be included in web.xml

2006-02-27 Thread bugzilla
to powerpoint files using Tomcat 5.0.28. That version is distributed with these lines in web.xml: mime-mapping extensionppt/extension mime-typeapplication/powerpoint/mime-type /mime-mapping I compared the mime-types with entries in Apache 2.20 mime.types file, where I find