Closed
Bug 813319
Opened 12 years ago
Closed 12 years ago
Reviewer tools need to catch SigningErrors
Categories
(Marketplace Graveyard :: Reviewer Tools, defect, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
2012-12-13
People
(Reporter: krupa.mozbugs, Assigned: robhudson)
References
()
Details
traceback details: Stacktrace (most recent call last): File "django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "django/db/transaction.py", line 209, in inner return func(*args, **kwargs) File "amo/decorators.py", line 33, in wrapper return func(request, *args, **kw) File "amo/decorators.py", line 65, in wrapper return f(request, *args, **kw) File "addons/decorators.py", line 33, in wrapper return f(request, addon, *args, **kw) File "mkt/reviewers/views.py", line 265, in app_review return _review(request, addon) File "mkt/reviewers/views.py", line 205, in _review form.helper.process() File "mkt/reviewers/utils.py", line 397, in process return self.actions[action]['method']() File "mkt/reviewers/utils.py", line 136, in process_public self.process_public_immediately() File "mkt/reviewers/utils.py", line 171, in process_public_immediately self.addon.sign_if_packaged(self.version.pk) File "mkt/webapps/models.py", line 679, in sign_if_packaged return packaged.sign(version_pk, reviewer=reviewer) File "nuggets/celeryutils.py", line 35, in wrapped return fun(*args, **kw) File "lib/crypto/packaged.py", line 135, in sign sign_app(file_obj.file_path, path) File "lib/crypto/packaged.py", line 44, in sign_app raise SigningError("Archive extraction failed. Bad archive?") sentry: http://sentry.dmz.phx1.mozilla.com/marketplace-dev/group/3203/
Comment 1•12 years ago
|
||
We should catch this and log it or something. Shouldn't be oopsing.
Assignee: nobody → robhudson.mozbugs
Priority: -- → P4
Target Milestone: --- → 2012-12-13
Comment 2•12 years ago
|
||
Traceback fixed for this instance. I think we have to abort the push to public if it can't be signed correctly. Logging would leave us in a bad state, a public packaged app that's unsigned. I think the change is to make the reviewer tools catch SigningErrors and raise an appropriate message, so it's not a 500, but it's not public either.
Summary: [traceback] SigningError: Archive extraction failed. Bad archive? → Reviewer tools need to catch SigningErrors
Assignee | ||
Comment 3•12 years ago
|
||
My plan next week: * Catch SigningError (and look for any other errors that make sense to catch in the view or reviewer.utils. * Log the error * Return nice message to the reviewers (vs 500 "Oops") * We already have `commit_on_success` so that any error won't make the app public.
Assignee | ||
Comment 4•12 years ago
|
||
https://github.com/mozilla/zamboni/commit/8d2599c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•