Comment 44 for bug 336866

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 336866] Re: When adding tag or updating description, lp_save() gives "HTTP Error 412: Precondition Failed"

On Fri, 12 Mar 2010 11:34:23 -0000, Martin Pitt <email address hidden> wrote:
> 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

Yep, that's the NamedOperation case again.

Thanks,

James