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 2007/04/10 20:51:51 UTC

DO NOT REPLY [Bug 42081] New: - text-based HeaderName and ReadmeName files that do not include the word "the" are not displayed

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42081>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42081

           Summary: text-based HeaderName and ReadmeName files that do not
                    include the word "the" are not displayed
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jas@cs.yorku.ca


If I configure HeaderName/ReadmeName to be just "HEADER" and "README"
respectively, and my HEADER/README file is of type text/plain, but does not
include the word "the" in it, Apache will not display it.

As it happens, it seems that mod_mime_magic considers the use of "the" to be
"English" which gets mapped to "text/plain".  I guess that's okay.  However, if
the document does not contain "the", mod_mime_magic doesn't know the type, and
Apache's DefaultType doesn't seem to get used (which, by default, should be
text/plain), so Apache doesn't display the file since it will only display
README/HEADER with content type "text/*".  If you access the README/HEADER file
directly, the web server returns the content type of "text/plain", so
DefaultType is used at some level. I think this is a bug.

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

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


DO NOT REPLY [Bug 42081] - text-based HeaderName and ReadmeName files that do not include the word "the" are not displayed

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42081>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42081


fielding@apache.org changed:

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




------- Additional Comments From fielding@apache.org  2007-05-01 03:40 -------
mod_mime_magic uses the external file magic mechanism, which is
not reliable for unstructured files.  There is no way for us to
"fix" such a mechanism.

The proper workaround is to define the type directly, using the
configuration mechanism.  Something like (untested)

<Files "README">
   ForceType text/plain
</Files>
<Files "HEADER">
   ForceType text/plain
</Files>



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

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