IntegrityError adding attachment through the API when file name contains slash

Bug #1021611 reported by Diogo Matsubara
6
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(comment='foo', data='foo', filename="/home/greg/tmp/toto.txt")
3. OOPS-92bfd4aa626c5f26eebd81750328efb4

IntegrityError: new row for relation "libraryfilealias" violates check constraint "valid_filename"

Tags: api oops qa-ok

Related branches

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Steve Kowalik (stevenk)
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Steve Kowalik (stevenk)
tags: added: qa-ok
removed: qa-needstesting
Steve Kowalik (stevenk)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.