You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/12/08 15:05:49 UTC

DO NOT REPLY [Bug 50434] New: file name based matching should not consider files that are named just ".extension"

https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

           Summary: file name based matching should not consider files
                    that are named just ".extension"
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mime
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: calestyo@scientia.net


Guess this is more or less related to issue #50357,... but I would suggest the
following independently of that one.

When mod_mime determines type/charset/handler/encoding/etc. based on the file
name by their extensions it should not consider the "first extension" of files
that start with a ".".
e.g. having a file ".png" should _not_ lead to type "image/png", as it's (IMHO)
more likely to be just a "hidden" file named "png" than a PNG picture.

I would however suggest to consider "secondary extensions" of files starting
with a ".", e.g. ".png.ascii" is IMHO likely to be a "hidden" file, named
"png", in ascii charset.

So for files starting with a ".":
.ignore.consider.consider...


This of course should also be done by the mappings set up via the TypeMap file.

This makes also indices generated by mod_autoindex looking more sane.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50434] file name based matching should not consider files that are named just ".extension"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

--- Comment #2 from Christoph Anton Mitterer <ca...@scientia.net> 2011-01-16 11:29:48 EST ---
Hi William.

Yes, your suggestion is even better than mine :)

Guess that's the way to go!

Cheers,
Chris.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50434] file name based matching should not consider files that are named just ".extension"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

--- Comment #1 from William A. Rowe Jr. <wr...@apache.org> 2010-12-08 13:10:25 EST ---
Perhaps ignore all leading periods?  E.g. "..php" would not trigger a match
either.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50434] file name based matching should not consider files that are named just ".extension"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Stefan Fritsch <sf...@sfritsch.de> 2012-02-26 17:09:15 UTC ---
fixed in 2.4.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50434] file name based matching should not consider files that are named just ".extension"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #3 from Stefan Fritsch <sf...@sfritsch.de> 2011-01-21 07:52:19 EST ---
fixed in r1061791

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50434] file name based matching should not consider files that are named just ".extension"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

Christoph Anton Mitterer <ca...@scientia.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|PC                          |All
         OS/Version|Linux                       |All
           Severity|normal                      |enhancement

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org