"ResourceConflict: Document update conflict" during /contacts/ view
Bug #545321 reported by
Roman Yepishev
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Servers |
Fix Released
|
High
|
Eric Casteleijn |
Bug Description
<thisfred> self.db[foo] = bar
modifies bar (!)
it adds the revision number
Module /srv/ubuntuone.
raise ResourceConflic
Module /srv/ubuntuone.
**params)
Module /srv/ubuntuone.
resp, data = self.resource.
Module /srv/ubuntuone.
self.
visibility: | private → public |
Changed in ubuntuone-servers: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-servers: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The problem was that ensure_ design_ document has a default keyword argument that is a function call. The function call is only evaluated once at import time, whereas we need it to be evaluated every time, to prevent couchd-python to write revision numbers back into the (in memory copy of the) view registry. Hate.