Ticket #1591 (closed defect: fixed)

Opened 3 years ago

Last modified 15 months ago

Make keep value retrieval in Journal more robust

Reported by: sayamindu Owned by: alsroot
Priority: Unspecified by Maintainer Milestone: 0.96
Component: sugar Version: 0.95.x
Severity: Major Keywords:
Cc: Distribution/OS:
Bug Status: Unconfirmed

Description

The keep value retrieval code in the journal expects the data to be int, however, sometimes it is not. The attached patch tries to fix that.

Attachments

keep.patch Download (0.6 KB) - added by sayamindu 3 years ago.
Proposed patch

Change History

Changed 3 years ago by sayamindu

Proposed patch

  Changed 3 years ago by sayamindu

  • owner changed from tomeu to alsroot
  • status changed from new to assigned

Reassigning ticket to alsroot since he's the Journal maintainer.

  Changed 3 years ago by alsroot

  • keywords r+ added; r? removed

follow-up: ↓ 4   Changed 3 years ago by alsroot

  • keywords r! added; r+ removed

oops, sorry

what about making such checks(and #1590) on ds level(could be also in place where shell writes ds entries, but I guess ds is enough) and do not place check code to intermediate code?

in reply to: ↑ 3   Changed 3 years ago by sascha_silbe

Replying to alsroot:

oops, sorry

what about making such checks(and #1590) on ds level(could be also in place where shell writes ds entries, but I guess ds is enough) and do not place check code to intermediate code?

I would prefer the data store to stay as generic and metadata-agnostic as possible and let the UI handle unexpected data. It should also be in the read path, not the write one to provide robustness in cases of filesystem (or hardware) failures and misbehaving DS clients (i.e. activities), as has been argued on some other ticket as well.

We might decide to store special entries for the actions view (this has been discussed on the ML several months ago IIRC), so I'd prefer the generic data store access code to not enforce a certain set of properties to be present. Besides, there is no single place were this could be done (see #1197, #1198).

  Changed 3 years ago by erikos

How do we move forward with this issue?

  Changed 15 months ago by sascha_silbe

  • status changed from assigned to closed
  • severity changed from Unspecified to Major
  • version changed from Unspecified to 0.95.x
  • milestone changed from Unspecified by Release Team to 0.96
  • keywords r! removed
  • distribution Unspecified deleted
  • resolution set to fixed

Fixed in  55a4df2.

Note: See TracTickets for help on using tickets.