Closed
Bug 763994
Opened 13 years ago
Closed 13 years ago
Can't load email campaign
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
VERIFIED
FIXED
13
People
(Reporter: Usul, Assigned: adrian)
Details
Attachments
(3 files)
I created an email campaing and when I saved it I got the following :
Uh oh! Something went wrong...
Error loading recent email campaigns
Campaign saved70
Unable to load campaign.
url was https://crash-stats.mozilla.com/admin/email_campaign/70
Comment 1•13 years ago
|
||
Here is the exception:
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,803 ERROR - Dummy-3 - invalid literal for int() with base 10: 'rawurlencode(70)'
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,803 ERROR - Dummy-3 - trace back follows:
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,803 ERROR - Dummy-3 - Traceback (most recent call last):
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,803 ERROR - Dummy-3 - File "/data/socorro/application/socorro/webapi/webapiService.py", line 60, in GET#012 result = self.get(*args)
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,804 ERROR - Dummy-3 - File "/data/socorro/application/socorro/services/emailCampaign.py", line 27, in get#012 id = int(args[0])
Jun 12 09:17:02 Socorro Web Services (pid 19104): 2012-06-12 09:17:02,804 ERROR - Dummy-3 - ValueError: invalid literal for int() with base 10: 'rawurlencode(70)'
I suspect this is a regression from bug 733107, but I am not sure exactly how this is breaking from looking at the code.. it looks like "rawurlencode(70)" is literally getting passed, instead of the encoded value?
In any case $token should always be an int so I am not sure we really should be URL encoding here at all.
Comment 3•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/6ecda5b0d5834359e870281e0d80f1eba02f6dfd
Fixes bug 763994 - Remove the wrong rawurlencode in URL for email campaigns.
https://github.com/mozilla/socorro/commit/9ea4f9fcea9c7740d5f2208541a5f6c52d33dcb0
Merge pull request #647 from AdrianGaudebert/763994-fix-email-campaigns
Fixes bug 763994 - Remove the wrong rawurlencode in URL for email campaigns.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 4•13 years ago
|
||
Testing is blocked on bug 764906 for the moment.
| Assignee | ||
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → 14
| Assignee | ||
Comment 5•13 years ago
|
||
Steps to QA
-----------
1. Log in
2. Go to admin panel and then to email campaigns
3. Create a new campaign with fake version and data
4. On the second screen, make sure 0 users will be emailed
5. Verify that the campaign gets created by validating the previous step
6. Go back to the email campaign first page and check that your test campaign shows up in the campaign list at the bottom of the page.
| Assignee | ||
Updated•13 years ago
|
Target Milestone: 14 → 13
Comment 6•13 years ago
|
||
Reopened:
I wonder if the code hasn't landed on stage - when I create a campaign and click 'next step' I get a server error.
Steps to reproduce:
1. goto https://crash-stats.allizom.org/admin/email
2. create a campaign
3. click 'next step'
Expected:
it works
Actual:
After clicking 'next step' I'm taken to https://crash-stats.allizom.org/admin/confirm_email but there is a notice of a server error.
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Target Milestone: 13 → 14
| Assignee | ||
Comment 7•13 years ago
|
||
@Matt: I can't reproduce on stage anymore, I suppose this happened because of the DB problem. Can you please try again?
Moving back to 13, this is in stage branch already.
Target Milestone: 14 → 13
Comment 8•13 years ago
|
||
Bumping to resolved fixed per comment 7.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
Reopening: sorry adrian - I'm still seeing what appears to be the same error that I mentioned in comment 6.
Comment 10•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/d4add37bf3c7b005db0a8844a381f8175612317a
Revert "Fixes bug 763994 - Remove the wrong rawurlencode in URL for email campaigns."
This reverts commit 6ecda5b0d5834359e870281e0d80f1eba02f6dfd.
https://github.com/mozilla/socorro/commit/878813fc54016ea7125e3c1c168ed836a1f41b4c
Merge pull request #665 from Lonnen/revert-fix-for-763994
Revert "Fixes bug 763994"
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 11•13 years ago
|
||
@Matt: I'd like to know what you do exactly, because I can't reproduce on stage. Especially, what signature do you test with?
Comment 12•13 years ago
|
||
(In reply to Adrian Gaudebert [:adrian] from comment #11)
> @Matt: I'd like to know what you do exactly, because I can't reproduce on
> stage. Especially, what signature do you test with?
I love spurious errors - I can't reproduce it anymore either - although I've been able to reproduce a similar server error by leaving out a signature.
Steps to reproduce:
1. goto https://crash-stats.allizom.org/admin/email
2. create a campaign - but leave the 'Exact signature' field blank
3. click 'next step'
Expected:
If the 'Exact signature' field is blank and the 'next step' button is clicked an error message should be presented to the user letting them know this field is required.
Actual:
Clicking the 'next step' successful submits the form and redirects to https://crash-stats.allizom.org/admin/confirm_email. A generic server error message is presented to the user.
| Assignee | ||
Comment 13•13 years ago
|
||
This is a different problem, and not a regression, thus it has its own bug: bug 767391.
This one is indeed resolved! :)
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 14•13 years ago
|
||
[:mbrandt] Are there any other fields that are either required or, that needs to be in a specific format? There was a bug open to do proper validation on this form but was closed for some reason, cannot remember why ;)
Comment 15•13 years ago
|
||
(In reply to Adrian Gaudebert [:adrian] from comment #13)
> This one is indeed resolved! :)
Thanks adrian for pushing through this - bumping to QA verified
> There was a bug open to do proper validation on this form but was closed for some
> reason, cannot remember why ;)
Well there should be both form validation and likely some input validation. I'm not sure which bug you're referring. My bugzilla foo is weak on this fine Friday.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•