IntegrityError adding attachment through the API when file name contains slash
Bug #1021611 reported by
Diogo Matsubara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Steve Kowalik |
Bug Description
Steps to reproduce:
1. b = lp.bugs[2112]
2. b.addAttachment
3. OOPS-92bfd4aa626c5f26eebd81750328efb4
IntegrityError: new row for relation "libraryfilealias" violates check constraint "valid_filename"
Related branches
lp:~stevenk/launchpad/proper-error-on-bug-attachment-bad-filename
- Ian Booth (community): Approve
-
Diff: 118 lines (+29/-10)3 files modifiedlib/lp/bugs/tests/test_bugs_webservice.py (+14/-4)
lib/lp/registry/errors.py (+6/-0)
lib/lp/services/librarian/model.py (+9/-6)
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r15905 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 15905>.