There's a multitude of ways to reproduce this still. One is to add a
comment and then set the privacy flag, see attached reproducer script.

$ python bug336866.py 
Traceback (most recent call last):
  File "bug336866.py", line 9, in <module>
    b.lp_save()
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 638, 
in lp_save
    URI(self.self_link), representation, headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 329, 
in patch
    'PATCH', extra_headers=extra_headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 269, 
in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 412: Precondition Failed
Response headers:
---
content-length: 0
content-type: text/plain
date: Fri, 12 Mar 2010 11:33:07 GMT
server: zope.server.http (HTTP)
status: 412
vary: Cookie,Authorization,Accept
via: 1.1 wildcard.staging.launchpad.net
x-content-type-warning: guessed from content
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---

---


** Attachment added: "reproducer"
   http://launchpadlibrarian.net/40871516/bug336866.py

-- 
When adding tag or updating description, lp_save() gives "HTTP Error 412: 
Precondition Failed"
https://bugs.launchpad.net/bugs/336866
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to