Bug description with only whitespaces oopses
Bug #68203 reported by
Diogo Matsubara
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Steps to reproduce (using sample data):
1. Open: http://
2. Delete 'Description';
3. Fill in 'Description' one whitespace;
4. Click 'Change';
5. Crash like: OOPS-297C523 IntegrityError ERROR: new row for relation "bug" violates check constraint "no_empty_
or
1. Open: http://
2. Fill in any Summary;
3. Fill in 'Description' one whitespace;
4. Click Submit Bug report
5. OOPS-406C806 AssertionError createBug requires a comment, msg, or description
Recently: OOPS-979D3742 or OOPS-979F3381
Related branches
lp:~sinzui/launchpad/bug-description-0
- Robert Collins (community): Approve
-
Diff: 952 lines (+250/-150)9 files modifiedlib/lp/bugs/browser/bugtarget.py (+11/-8)
lib/lp/bugs/browser/tests/bugtarget-filebug-views.txt (+95/-88)
lib/lp/bugs/browser/tests/test_bugtarget_filebug.py (+77/-12)
lib/lp/bugs/interfaces/bug.py (+7/-4)
lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt (+16/-19)
lib/lp/bugs/stories/standalone/xx-filebug-package-chooser-radio-buttons.txt (+2/-14)
lib/lp/bugs/windmill/tests/test_filebug_dupe_finder.py (+1/-1)
lib/lp/services/fields/__init__.py (+19/-4)
lib/lp/services/fields/tests/test_fields.py (+22/-0)
description: | updated |
Changed in malone: | |
assignee: | nobody → bjornt |
description: | updated |
description: | updated |
Changed in malone: | |
assignee: | Björn Tillenius (bjornt) → nobody |
Changed in launchpad: | |
importance: | Medium → Critical |
Changed in launchpad: | |
assignee: | nobody → Curtis Hovey (sinzui) |
status: | Triaged → In Progress |
summary: |
- Bug description with only whitespaces should return a nice error message - instead of crashing + Bug description with only whitespaces oopses |
Changed in launchpad: | |
milestone: | none → 11.03 |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
Also note there's a typo in the constraint triggered. It would be nice to have that fixed too while fixing this bug.
IntegrityError: ERROR: new row for relation "bug" violates check constraint "no_empty_ desctiption"