Received: (qmail 29088 invoked by uid 501); 28 Aug 2001 04:21:07 -0000 Message-Id: <20010828042107.29087.qmail@apache.org> Date: 28 Aug 2001 04:21:07 -0000 From: Axel Beckert Reply-To: axel@dagstuhl.de To: submit@bugz.apache.org Subject: AddDescription with file extension (e.g. ".x" or "*.x" ) matches it like an extension prefix (e.g. "*.x*") X-Send-Pr-Version: 3.110 >Number: 8248 >Category: mod_autoindex >Synopsis: AddDescription with file extension (e.g. ".x" or "*.x" ) matches it like an extension prefix (e.g. "*.x*") >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Aug 27 21:30:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: axel@dagstuhl.de >Release: 1.3.20, 1.3.12 >Organization: apache >Environment: 1.3.20: SunOS 5.7 Generic sun4u sparc SUNW,Ultra-5_10, gcc version 2.95.2 19991024 (release) 1.3.12: SunOS 4.1.4 11 sun4m, gcc version 2.95.2 19991024 (release) >Description: From http://httpd.apache.org/docs/mod/mod_autoindex.html#adddescription: "File is a file extension, partial filename, wild-card expression or full filename for files to describe." In the documentation it's not clear to me, how Apache distinguishes between file extensions and partial filenames, but examples e.g. of AddIcon suggest the following example for AddDescription in use with file extensions: AddDescription "C Header File" .h While "AddIcon (C,/icons/c.gif) .h" works as it should (it matches "*.h"), the above line does not work like it should: It matches "*.h*" and therefore als matches HTML files and describes them as "C Header File". 'AddDescription "C Header File" h' makes it even worse: It matches every file containing an "h". Oh, and BTW: 'AddDescription "C Header File" *.h' doesn't work either and also matches the extension prefix "*.h*". :-( >How-To-Repeat: Use AddDescription "C Header File" .h AddIcon (C,/icons/c.gif) .h" and request some directory listing with a bunch of html files. See the descriptions and icons/alt texts. >Fix: Maybe partially a documentation bug, too. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]