Comment 1 for bug 254595

Revision history for this message
Markus Korn (thekorn) wrote :

There is a very unfortunate side effect of this bug: when I change the content of an attachment like

>>> attachment = bug.attachments[1].data
>>> f = attachment.open("w", content_type)
>>> f.write("boo bar baz")
>>> f.close()

this file is renamed.

Example (first attachment on https://bugs.staging.launchpad.net/buglog-data/+bug/249127):
 - uploading via web-UI, the link is like: http://staging.launchpadlibrarian.net/17613488/test_attachment.txt
 - changing the content via launchpadlib, it points to http://staging.launchpadlibrarian.net/17613488/data

Markus