diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2011-11-02 22:22:17 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2012-03-13 19:26:26 (GMT) |
commit | 55a4df2fb8476d295f90767d42f54eca81b37cd9 (patch) | |
tree | 617cf61689e0d110410d51d10aead7d9acaf6558 /src/jarabe/model/session.py | |
parent | f22a2b92143e3b09eceeb0720f05abef04f31311 (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>
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src/jarabe/model/session.py')
0 files changed, 0 insertions, 0 deletions