diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2012-01-18 01:56:22 (GMT) |
---|---|---|
committer | Anish Mangal <anish@activitycentral.com> | 2012-02-01 12:33:31 (GMT) |
commit | fac510face3a03d43b758e1c1fce0eece053279b (patch) | |
tree | f38234cce221035c428fcfb837c6423020d17e7f /src/jarabe/journal/objectchooser.py | |
parent | 07dad25b5df19f8c5a79351246c2cf65419dac98 (diff) |
Journal detail view: don't choke on invalid 'keep' property (fixes SL#1591)
Properties of data store entries can get corrupted, e.g. due to low level
crashes or running out of battery (see OLPC#11372 [1] for a real-life
example). In addition any activity can - accidentally or on purpose - write
data store entries with arbitrary metadata.
By comparing the 'keep' property as a string we can avoid the ValueError that
might happen when trying to convert the property value to an integer.
[1] https://dev.laptop.org/ticket/11372
Reported-by: Gary Martin <garycmartin@googlemail.com>
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Diffstat (limited to 'src/jarabe/journal/objectchooser.py')
0 files changed, 0 insertions, 0 deletions