Closed
Bug 282574
Opened 20 years ago
Closed 20 years ago
use the new "auth_failure" error message for all authentication failures
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: LpSolit, Assigned: LpSolit)
Details
Attachments
(1 file, 2 obsolete files)
|
7.47 KB,
patch
|
shane.h.w.travis
:
review+
|
Details | Diff | Splinter Review |
All edit*.cgi files already use the new ThrowUserError("auth_failure",...) error
message, see bug 265898. We should extend this to all *.cgi files in order to
prevent the duplication of error messages in user-error.html.tmpl. Concerned
files are:
buglist.cgi, doeditparams.cgi, quips.cgi and sanitycheck.cgi.| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Comment 1•20 years ago
|
||
This patch also includes attachment.cgi, which I forgot to mention in my previous comment.
Attachment #174576 -
Flags: review?(vladd)
| Assignee | ||
Updated•20 years ago
|
Attachment #174576 -
Flags: review?(vladd) → review?
Comment 2•20 years ago
|
||
Comment on attachment 174576 [details] [diff] [review] patch, v1 r=wurblzap by inspection, assuming you checked the remaining code for the removed error codes :)
Attachment #174576 -
Flags: review? → review+
Updated•20 years ago
|
Flags: approval?
Comment 3•20 years ago
|
||
Comment on attachment 174576 [details] [diff] [review] patch, v1 Heh... I hit a midair with Marc. Frederic, your change of attachment_access_denied reveals that there *is* an 'insider group', which some sites may want left unpublicized. I was going to suggest that you remove the 'group' from the faulire message... but then on looking at the error code I see that this would create the following message: "Sorry, and so you aren't allowed to..." The r- is because you are revealing too much information. Somehow, you have to make it so that it is okay not to send a group; that can be part of another bug (which is then a prerequisite to this one) or you can just fix it here. The solution is simple: - and so you aren't allowed to + [% if GROUP %]and so [% END %] + you aren't allowed to should do it. I'll leave it to you how you want to address it. r? me when you're done.
Attachment #174576 -
Flags: review-
| Assignee | ||
Comment 4•20 years ago
|
||
some improvement here...
Attachment #174576 -
Attachment is obsolete: true
Attachment #176618 -
Flags: review?(travis)
Comment 5•20 years ago
|
||
Comment on attachment 176618 [details] [diff] [review] patch, v2 This looks good, and you even caught a condition I hadn't. Nic going! One small nit: since you're changing the line anyway, I'd like to see 'allowed' morph into 'authorized'. It's what a lot of the error messages you're deleting used, and IMHO it's more clear about why someone is being refused access. r+ by inspection.
Attachment #176618 -
Flags: review?(travis) → review+
| Assignee | ||
Comment 6•20 years ago
|
||
replace "aren't allowed" by "are not authorized"
Attachment #176618 -
Attachment is obsolete: true
Attachment #176627 -
Flags: review?(travis)
Comment 7•20 years ago
|
||
Comment on attachment 176627 [details] [diff] [review] patch, v2.1 Beautiful. Full, unreserved approval.
Attachment #176627 -
Flags: review?(travis) → review+
Updated•20 years ago
|
Flags: approval? → approval+
Comment 8•20 years ago
|
||
Checking in attachment.cgi; /cvsroot/mozilla/webtools/bugzilla/attachment.cgi,v <-- attachment.cgi new revision: 1.74; previous revision: 1.73 done Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.285; previous revision: 1.284 done Checking in doeditparams.cgi; /cvsroot/mozilla/webtools/bugzilla/doeditparams.cgi,v <-- doeditparams.cgi new revision: 1.32; previous revision: 1.31 done Checking in quips.cgi; /cvsroot/mozilla/webtools/bugzilla/quips.cgi,v <-- quips.cgi new revision: 1.26; previous revision: 1.25 done Checking in sanitycheck.cgi; /cvsroot/mozilla/webtools/bugzilla/sanitycheck.cgi,v <-- sanitycheck.cgi new revision: 1.86; previous revision: 1.85 done Checking in template/en/default/global/user-error.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user- error.html.tmpl,v <-- user-error.html.tmpl new revision: 1.101; previous revision: 1.100 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•