Closed Bug 147476 Opened 23 years ago Closed 23 years ago

dot .htaccess issues not documented.

Categories

(Bugzilla :: Administration, task, P2)

2.15

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: CodeMachine, Assigned: justdave)

Details

(Whiteboard: want for 2.16rc2)

Attachments

(1 file, 2 obsolete files)

We need to document that if you change your webdotbase, you may need to alter your web server permissions. In particular, your .htaccess file might need to be added or recreated. This should go in defparams.pl so it appears on the parameter.
Severity: normal → major
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.16
Attached patch Patch (obsolete) — Splinter Review
Keywords: patch, review
Whiteboard: want for 2.16rc2
Comment on attachment 85378 [details] [diff] [review] Patch >+data/webdot directory. You can delete any existing .htaccess file and >+re-run checksetup.pl and Bugzilla will create a new .htaccess file with >+the correct rules.", This is incorrect, because checksetup.pl always creates the .htaccess file with a hardcoded IP address regardless of webdotbase. Marking needs-work.
Attachment #85378 - Flags: review-
You also need to note that this is only if htaccess creation is on in localconfig, and that this is only if you're using a web server that supports .htaccess. =)
Checksetup probably should use webdotbase when constructing the .htaccess, though. Filed bug 147800 on that.
Attached patch Patch v2: different wording (obsolete) — Splinter Review
To speed this up, I propose another wording which doesn't promise that much. Since the .htaccess file has some good comments in it anyway, I think it's OK for 2.16rc2 to just have the need for a change noted. Dave can then set milestone/priority of bug 147800 as he sees fit for a better solution. But until then, I think this is an acceptable quick fix.
Attachment #85378 - Attachment is obsolete: true
Not everyone uses web servers that support .htaccess. They may need to alter the configuration manually.
I agree that the description is not totally correct, but I think it's on the same line with the rest of the Bugzilla: instructions are good for Apache users, the rest will have to improvise. Anyone who managed to get BZ running on something else than Apache will probably understand what this instruction means in practice. On the other hand, if you have a universally valid (yet concise and helpful) message to put there, I see no reason why we couldn't fix this for good now. I think the major problem is that we haven't put much thought into file protection on other servers, and thus aren't very good at giving practical advice anyway. Until this issue is cleared out, Bugzilla will have Apache-specific stuff floating around here and there anyway.
Comment on attachment 85406 [details] [diff] [review] Patch v2: different wording Looks good to me. r=afranke
Attachment #85406 - Flags: review+
You don't need to put a universal message, you just need to indicate that the instructions are for Apache. Also, you don't mention that checksetup can recreate the .htaccess file.
Ok then, Matty's comments addressed.
Attachment #85406 - Attachment is obsolete: true
Comment on attachment 85745 [details] [diff] [review] Patch v3: Apache and checksetup.pl mentioned I don't think we need to make this any more complecated by saying '... as long as create_htaccess is set it localconfig' r=bbaetz
Attachment #85745 - Flags: review+
Comment on attachment 85745 [details] [diff] [review] Patch v3: Apache and checksetup.pl mentioned r=afranke
Attachment #85745 - Flags: review+
HEAD: Checking in defparams.pl; /cvsroot/mozilla/webtools/bugzilla/defparams.pl,v <-- defparams.pl new revision: 1.74; previous revision: 1.73 done BUGZILLA-2_16-BRANCH: Checking in defparams.pl; /cvsroot/mozilla/webtools/bugzilla/defparams.pl,v <-- defparams.pl new revision: 1.73.2.1; previous revision: 1.73 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: