Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1327326 - rpm -V tomcat fails on /var/log/tomcat/catalina.out
rpm -V tomcat fails on /var/log/tomcat/catalina.out
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tomcat (Show other bugs)
7.3
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: Coty Sutherland
fgoldefu
:
Depends On:
Blocks: 1298191 1327327 1341853
  Show dependency treegraph
 
Reported: 2016-04-14 15:32 EDT by Coty Sutherland
Modified: 2016-11-03 17:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1327327 1341853 (view as bug list)
Environment:
Last Closed: 2016-11-03 17:11:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2599 normal SHIPPED_LIVE Moderate: tomcat security, bug fix, and enhancement update 2016-11-03 08:12:12 EDT

  None (edit)
Description Coty Sutherland 2016-04-14 15:32:09 EDT
Description of problem:
When the command `rpm -V tomcat` is run, the verification test run on /var/log/tomcat/catalina.out fails. The PID file also fails because
of the change in mtime and probably should be ignored also.

Version-Release number of selected component (if applicable):
tomcat-7.0.54-3.el7.noarch

How reproducible: 
Always

Steps to Reproduce:
1. Install tomcat on RHEL 7
2. Start the tomcat service
3. # rpm -V tomcat

Actual results:
S.5....T.    /var/log/tomcat/catalina.out
.......T.    /var/run/tomcat.pid

Expected results:


Additional info:
Catalina.out and the pid file should pass verification, or not be included.
Comment 2 Coty Sutherland 2016-05-18 11:22:47 EDT
This is a very minor issue that can be resolved with a spec update. Something like what was done on the upstream bug (except I don't think the PID file is affected in RHEL tomcat):

--- tomcat.spec
+++ tomcat.spec
@@ -538,8 +538,8 @@ fi
 %defattr(0664,tomcat,root,0770)
 %attr(0770,tomcat,root) %dir %{logdir}
 %defattr(0664,root,tomcat,0770)
-%attr(0660,tomcat,tomcat) %{logdir}/catalina.out
-%attr(0644,tomcat,tomcat) %{_localstatedir}/run/%{name}.pid
+%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
+%attr(0644,tomcat,tomcat) %verify(not size md5 mtime) %{_localstatedir}/run/%{name}.pid
 %attr(0770,root,tomcat) %dir %{cachedir}
 %attr(0770,root,tomcat) %dir %{tempdir}
 %attr(0770,root,tomcat) %dir %{workdir}
Comment 8 errata-xmlrpc 2016-11-03 17:11:51 EDT
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-2016-2599.html

Note You need to log in before you can comment on or make changes to this bug.