Closed
Bug 818908
Opened 13 years ago
Closed 13 years ago
[traceback] ValueError: Cannot use None as a query value
Categories
(support.mozilla.org :: Questions, task, P1)
support.mozilla.org
Questions
Tracking
(Not tracked)
RESOLVED
FIXED
2012Q4
People
(Reporter: willkg, Assigned: willkg)
Details
(Whiteboard: u=user c=wiki p= s=2012.23)
Seems like a change was pushed yesterday that's erroring out periodically related to this line:
questions/views.py in aaq
360. # fully IA-driven (sync isn't special case anymore).
361. question.add_metadata(product=product['key'])
362.
363. for p in Product.objects.filter(slug__in=product.get('products')):
364. question.products.add(p)
That looks like bad code on line 363. Either this should check to see if 'products' is a key in product and skip the filter if not or it should be doing .get('products', []).
More error details and counts here:
https://errormill.mozilla.org/support/group/190/
This should get fixed ASAP since it's affecting users asking questions and that's bad support.
Comment 1•13 years ago
|
||
Will, can you explain how this is affecting users?
Ricky, does this need an emergency fix?
Whiteboard: u=user c=wiki p= s=2012.23
| Assignee | ||
Comment 2•13 years ago
|
||
Pretty sure this prevents a user from asking a question. Someone who knows this code more would know whether that's true or not.
| Assignee | ||
Comment 3•13 years ago
|
||
If I'm reading this correctly, then this affects the sync and other products. In both of those cases, the data doesn't have a 'products' key, so the value is None and then everything goes to hell.
I don't know offhand if we have users asking questions for Sync and Other. If we don't, yet, then we could push this off and don't need an emergency fix.
Having said that, I'm pretty sure that the fix here is pretty easy, so I'm going to grab it and do it now.
Assignee: nobody → willkg
| Assignee | ||
Comment 4•13 years ago
|
||
In a pull request: https://github.com/mozilla/kitsune/pull/998
| Assignee | ||
Comment 5•13 years ago
|
||
| Assignee | ||
Comment 6•13 years ago
|
||
Pushed to production just now.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
Thanks, Will! We do have people asking Sync questions IIRC, so this was helpful indeed.
You need to log in
before you can comment on or make changes to this bug.
Description
•