You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Justin Watt <jw...@email.unc.edu> on 2001/10/18 07:38:14 UTC
mod_autoindex/8570: AddDescription directive treats "file" as if surrounded by wildcards
>Number: 8570
>Category: mod_autoindex
>Synopsis: AddDescription directive treats "file" as if surrounded by wildcards
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Oct 17 22:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: jwatt@email.unc.edu
>Release: 1.3.20
>Organization:
apache
>Environment:
?
>Description:
Similar to bugs 8248, 5814, 6747
This could also be a doc-bug...
http://httpd.apache.org/docs/mod/mod_autoindex.html#adddescription
The syntax for AddDescription is as follows:
AddDescription string file [file] ...
"file" is defined as: "a file extension, partial filename, wild-card expression or full filename for files to describe"
However, using the directive as follows:
AddDescription "Hypertext Markup Language" html
so that a *directory* named "html" has that description, also applies that description to files that end with the extension .html --- which is a conflict the definition of "file" might predict. It seems as though "file" is actually treating everything as if it is surrounded by wildcards.
So that this is what I get:
html/ Hypertext Markup Language
netscape_colors.html Hypertext Markup Language
special_characters.html Hypertext Markup Language
And this is what I want:
html/ Hypertext Markup Language
netscape_colors.html Color Palette
special_characters.html Special HTML Characters
>How-To-Repeat:
>Fix:
Based on the documentation:
The syntax for AddDescription is as follows:
AddDescription string file [file] ...
"file" is defined as: "a file extension, partial filename, wild-card expression or full filename for files to describe"
You should change the effect of the AddDescription directive so that
1) file extensions need a preceding "."
2) partial filenames are no longer accepted (wildcards should take care of this)
2) full filenames are the default
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]