Closed
Bug 634826
Opened 14 years ago
Closed 14 years ago
.htaccess file permissions are not set by checksetup.pl
Categories
(Bugzilla :: Installation & Upgrading, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: bugzilla, Assigned: LpSolit)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
734 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13
Build Identifier:
I used bzr switch / bzr up to move to 4.0; it moved .htaccess to another file and replaced it.
Unfortunately the replacement was owned by root:root and so Apache couldn't read it, blocking access to the site. I had to fix it manually with a chgrp; ./checkconfig.pl didn't notice.
Reproducible: Didn't try
Steps to Reproduce:
1. Upgrade to 4.0
2. Run ./checkconfig.pl; it says fixing permissions
3. But .htaccess can't be read by Apache
Actual Results:
The .htaccess file had permissions of 0640 and was owned root:root, so Apache couldn't read it. localconfig had the $webservergroup = 'apache'; so it should have been able to realize the problem.
Expected Results:
Since I ran ./checkconfig.pl as root, it had permissions to change .htaccess if needed; perhaps it didn't see it because it is a dotfile?
It was not difficult to figure out why I was getting a 403 Forbidden, once I checked the logs, but it is a minor note that could be mentioned in the release notes, as BZR moving .htaccess to .htaccess.moved meant that the new .htaccess file was created with the default permissions.
| Assignee | ||
Comment 1•14 years ago
|
||
It's checksetup.pl, not checkconfig.pl. ;)
I just tested locally, and checksetup.pl indeed doesn't fix permissions nor ownership for this file in Bugzilla 4.0 and 4.1. But it fixes them correctly in 3.4 and 3.6. So we regressed this. Marking as a blocker as it may prevent Bugzilla from running correctly. Thanks for catching that!
Severity: minor → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking4.0.1+
Keywords: regression
OS: Linux → All
Hardware: x86 → All
Summary: .htaccess file permissions are not checked by checkconfig.pl → .htaccess file permissions are not set by checksetup.pl
Target Milestone: --- → Bugzilla 4.0
Version: unspecified → 4.0
| Assignee | ||
Comment 2•14 years ago
|
||
It looks like that all .htaccess files are fixed correctly, except bugzilla/.htaccess, probably because it's not listed in %htaccess in Bugzilla/Install/Filesystem.pm.
| Assignee | ||
Comment 3•14 years ago
|
||
Comment 5•14 years ago
|
||
Comment on attachment 513173 [details] [diff] [review]
patch, v1
Ah, ha, good catch! Right, I was expected file-creation to catch this, but of course, .htaccess isn't created, anymore.
Attachment #513173 -
Flags: review?(mkanat) → review+
Updated•14 years ago
|
Flags: approval4.0+
Flags: approval+
| Assignee | ||
Comment 6•14 years ago
|
||
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Install/Filesystem.pm
Committed revision 7719.
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified Bugzilla/Install/Filesystem.pm
Committed revision 7560.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•