Bug 1069625

Summary: httpd.conf uses icon bomb.gif for all files/dirs ending with core
Product: Red Hat Enterprise Linux 6 Reporter: Johan Kröckel <johan.kroeckel>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Filip Holec <fholec>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5CC: dkutalek, jkaluza, mfrodl, psplicha
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: httpd-2.2.15-40.el6 Doc Type: Bug Fix
Doc Text:
Previously, httpd regular expression for matching core-dumps was too broad, and files like "score" were also marked as core-dumps and were displayed with a bomb icon in the directory index. The regular expression has been fixed to match only files named "core".
Story Points: ---
Clone Of:
: 1170215 (view as bug list) Environment:
Last Closed: 2015-07-22 05:52:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1170215, 2075406, 2077039    

Description Johan Kröckel 2014-02-25 12:25:06 UTC
Description of problem:
The line
AddIcon /icons/bomb.gif core
matches all files ending with "core" like a file name "Score" and not only a file named "core".
I think it should be
AddIcon /icons/bomb.gif /core
to match only "/core" (path is relative).

Comment 6 Martin Frodl 2015-02-26 14:26:59 UTC
I would like to point out that starting from 2.4 kernel, core dump files are named core.<PID> by default (this behaviour can be customised by modifying files /proc/sys/kernel/core_pattern and /proc/sys/kernel/core_uses_pid accordingly). Such files are, however, still not displayed with the bomb icon in directory listings.

In order to support both naming patterns, the original line in httpd.conf should be split into two (at least I have not been able to think of a better solution):

AddIcon /icons/bomb.gif /core
AddIcon /icons/bomb.gif */core.*

Comment 8 errata-xmlrpc 2015-07-22 05:52:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1249.html