database.delete_record fails on deleted records without a record_type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
desktopcouch |
Fix Released
|
Low
|
Eric Casteleijn |
Bug Description
During the migration, delete_record throws this error:
Traceback (most recent call last):
File "/usr/lib/
service.start()
File "/usr/lib/
ctx=self._ctx)
File "/usr/lib/
return platform_
File "/usr/lib/
start_
File "/usr/lib/
migration.
File "/usr/lib/
migration[
File "/usr/lib/
migrateable
File "/usr/lib/
record = self.get_
File "/usr/lib/
record = self.record_
File "/usr/lib/
raise NoRecordTypeSpe
desktopcouch.
Related branches
- Vincenzo Di Somma (community): Approve
- Martin Albisetti (community): Approve
-
Diff: 139 lines (+42/-9)3 files modifieddesktopcouch/application/migration/__init__.py (+1/-2)
desktopcouch/application/migration/tests/test_migration.py (+41/-5)
po/POTFILES.in (+0/-2)
Changed in desktopcouch: | |
importance: | Undecided → Critical |
status: | New → In Progress |
assignee: | nobody → Eric Casteleijn (thisfred) |
Changed in desktopcouch: | |
status: | In Progress → Fix Committed |
Changed in desktopcouch: | |
status: | Fix Committed → Fix Released |
Seems to fail only when a record has the deleted flag in application annotations, yet is missing a record_type. We should not break on this, but these records should not be created in the first place.