Bug 1375039

Summary: file ownership incorrect in RPM
Product: [Community] Bugzilla Reporter: Rony Gong 🔥 <qgong>
Component: Bugzilla GeneralAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0CC: huiwang, mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.3-rh8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-11 01:04:00 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:

Description Rony Gong 🔥 2016-09-12 03:19:35 UTC
Description of problem:
Please make the spec file  could change all files belong to user apache

Version-Release number of selected component (if applicable):
5.0.

How reproducible:


Steps to Reproduce:
1.[root@bz-web bugzilla]# su - apache -s /bin/bash -c /usr/share/rh-bugzilla/bin/rh-create-templates.pl 
Removing existing compiled templates...
Precompiling templates...done.
Creating t/.htaccess...
Permission denied at /var/www/html/bugzilla//Bugzilla/Install/Filesystem.pm line 651.

2.
[root@bz-web bugzilla]# ls -ld /var/www/html/bugzilla/t
drwxr-xr-x. 3 root root 4096 Sep 12 02:39 /var/www/html/bugzilla/t

[root@bz-web bugzilla]# ls -ld /var/www/html/bugzilla/xt
drwxr-xr-x. 3 root root 4096 Sep 12 02:39 /var/www/html/bugzilla/xt
3.

Actual results:


Expected results:


Additional info:

Comment 1 Rony Gong 🔥 2016-10-09 02:15:29 UTC
Tested on QA environment(5.0.3-rh8)
Result: Pass
Steps:
1.[root@bz-web bugzilla]# su - apache -s /bin/bash -c /usr/share/rh-bugzilla/bin/rh-create-templates.pl 
Removing existing compiled templates...
Precompiling templates...done.
Creating t/.htaccess...
==>Without any error
2.
[root@bz-web bugzilla]# ls -ld /var/www/html/bugzilla/t
==>
drwxr-xr-x. 3 apache apache 4096 Sep 12 02:39 /var/www/html/bugzilla/t


3.[root@bz-web bugzilla]# ls -ld /var/www/html/bugzilla/xt
==>
drwxr-xr-x. 3 apache apache 4096 Sep 12 02:39 /var/www/html/bugzilla/xt