crashes if 'package' DB already exists

Bug #574377 reported by Duane Hinnen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stipple
Fix Released
Medium
Stipple Development Team

Bug Description

Stipple needs to detect the existing 'package' DB. When trying to 'Sync' packages If DB exists it still tries to make the DB and crashes.

Traceback (most recent call last):
  File "/home/duanedesign/U1.sync.packages/core/gui.py", line 52, in run
    save.makeDB()
  File "/home/duanedesign/U1.sync.packages/core/db.py", line 70, in makeDB
    databaserecord = database.put_record(record_one)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 222, in put_record
    record.record_id, record._data)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 164, in with_reconnects
    return func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 327, in __setitem__
    resp, data = self.resource.put(id, content=content)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 989, in put
    **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1031, in _request
    raise ResourceConflict(error)
couchdb.client.ResourceConflict: ('conflict', 'Document update conflict.')

summary: - crashes if couchdb already exists
+ crashes if 'package' DB already exists
description: updated
Changed in stipple:
importance: Undecided → Medium
assignee: nobody → Stipple Development Team (stipple-devs)
malev (marcosvanetta)
Changed in stipple:
status: New → Confirmed
Revision history for this message
malev (marcosvanetta) wrote :

I change the way it get the records all ready on the database, and paint it with some exceptions
seems to work

malev (marcosvanetta)
Changed in stipple:
status: Confirmed → 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.