Unauthorized merge approval gives oops rather than Unauthorized message.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Aaron Bentley |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Unauthorized merge approval gives oops rather than Unauthorized message.
I just tried to submit an approval for a merge request against
lp:bzr/2.2. It turns out that this branch doesn't have a Reviewer team,
so I'm not actually authorized to do so.
However, rather than getting a "You are not Authorized" email, I just
got an OOPS (1656CEMAIL3).
When looking at that oops, it ends with:
context.
Unauthorized: (<BranchMergePr
'launchpad.Edit')
It would seem that Unauthorized should be trapped and returned to the
user, rather than just generating and internal OOPS.
John
=:->
affects launchpad-code
- -------- Original Message --------
Subject: Submit Request Failure
Date: Wed, 14 Jul 2010 09:24:26 -0000
From: <email address hidden>
Reply-To: <email address hidden>
To: John Arbash Meinel <email address hidden>
An error occurred while processing a mail you sent to Launchpad's email
interface.
Error message:
Sorry, something went wrong when Launchpad tried processing your mail.
We've recorded what happened, and we'll fix it as soon as possible.
Apologies for the inconvenience.
If this is blocking your work, please file a question at
https:/
and include the error ID OOPS-1656CEMAIL3 in the description.
- --
For more information about using Launchpad by e-mail, see
https:/
or send an email to <email address hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
+hkAoMdjJn15kmX
=f9QG
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote:
>> I would probably change the error message a little bit. Something like:
>>
>> "Branch %s appears to be bound to itself, please unbind"
>>
>
> I have fixed the error message. Thanks for the review.
>
> Sample output:
> [bzr-grep-
> bzr: ERROR: Branch "file:/
> [bzr-grep-
>
review: approve
merge: approve
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
GmYAnA2fTXV2k1N
=kKgi
-----END PGP SIGNATURE-----
Related branches
- Abel Deuring (community): Approve (code)
-
Diff: 68 lines (+20/-4)2 files modifiedlib/lp/code/mail/codehandler.py (+2/-1)
lib/lp/code/mail/tests/test_codehandler.py (+18/-3)
summary: |
- [Fwd: Submit Request Failure] + Unauthorized merge approval gives oops rather than Unauthorized message. |
Changed in launchpad-code: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: oops |
tags: | added: code-review email |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-code: | |
status: | Fix Committed → Fix Released |
Fixed in stable r11640 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 11640>.