Closed Bug 591086 Opened 16 years ago Closed 16 years ago

Crash in search form processing

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
5.11.9

People

(Reporter: jbalogh, Assigned: davedash)

References

()

Details

(Whiteboard: [z])

File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/amo_python/www/preview/zamboni/apps/search/views.py", line 274, in search return _personas(request) File "/data/amo_python/www/preview/zamboni/apps/search/views.py", line 163, in _personas query = form.cleaned_data.get('q', '') AttributeError: 'SecondarySearchForm' object has no attribute 'cleaned_data' <WSGIRequest GET:<QueryDict: {u'q': [u''], u'pp': [u'http://www.google.com/'], u'advanced': [u'/'], u'cat': [u'personas']}>, POST:<QueryDict: {}>,
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reopening; if you try to search again from the 404 page you get when loading that URL, you get a domain-less URL: https://en-us/firefox/search/?q=term&cat=personas&lver=any&pid=1&sort=&pp=20&lup=&advanced=%2F
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Dave: Jeff tells me this is a completely separate bug, so feel free to close if it's not caused by that patch, and I'll just file a spinoff bug. BTW, the minimal testcase is searching from: https://preview.addons.mozilla.org/en-US/firefox/search//f
(In reply to comment #3) > BTW, the minimal testcase is searching from: > https://preview.addons.mozilla.org/en-US/firefox/search//f The problem comes from the double slash in the url.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Verified FIXED; now returns a 404, and I filed bug 591820 about comment 2 comment 4.
Status: RESOLVED → VERIFIED
Traceback (most recent call last): File "/data/amo_python/www/next/zamboni/vendor/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/amo_python/www/next/zamboni/apps/search/views.py", line 257, in search return _collections(request) File "/data/amo_python/www/next/zamboni/apps/search/views.py", line 191, in _collections query = form.cleaned_data.get('q', '') AttributeError: 'SecondarySearchForm' object has no attribute 'cleaned_data' /en-US/mobile/search/?q=k%27s+recommendation&cat=collections&pp=20&sortby=new'
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
URL: http://preview.addons.mozilla.org/en-... → https://preview.addons.mozilla.org/en...
Priority: -- → P2
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Verified FIXED; manually tested this, as well as re-ran my fuzzing tool.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.