Closed Bug 266893 Opened 21 years ago Closed 21 years ago

Deleted RSS .MSF file -> No further read from feeds

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcow, Assigned: Bienvenu)

Details

(Keywords: fixed-aviary1.0)

Attachments

(3 files)

It seems that if the .MSF file for a feed is deleted, altho the file will get rebuilt, there will be no further reads from the feed, at startup or by manually requesting Get New Messages. I'm seeing this in TB 0.8 and nightlies. To reproduce: 1) set up an RSS account in TB 2) add a feed (find an active one if you can, makes it easier to test) 3) fetch all the current messages; mark them all read (or delete them) 4) exit TB 5) locate the directory for the account and delete the feed's .MSF file 6) after waiting a reasonable while, go to the feed & try to get new messages Actual results: nuthin'! Expected results: New items are retrieved. Note that a new .MSF file *is* created. The contents are quite different, tho.
Attached file Original .msf
Attached file Rebuilt .MSF
The two attachments were created from the feed http://www.deftone.com/blogzilla/atom.xml
I think I might've encountered this while clearing out .msf files from various accounts, including my RSS one. but am not sure --I encountered this issue around the same time I had renamed my RSS account (via Account Central panel). so I'll need to see which scenario actually caused the non-refreshing of feeds. cc'ing marcia, trix, david and asa in case they've encountered or heard of similar issues.
OS: Windows 2000 → All
Hardware: PC → All
okay, it wasn't renaming the RSS account: getting new articles still works after doing that.
yeah, I encounter this bug after removing the summary file for an RSS feed. nominating: I know the advice might be "don't do that!" but I think fixing this would make this feature more robust. but if we do minus this, then a relnote suggestion: If you do remove the .msf for an RSS feed, you won't be able get new articles. A semi-workaround would be to delete the feed, then re-add it --from the GUI rather than going through your profile folder files.
Flags: blocking-aviary1.0?
all of the feed information is stored in the summary file. If you delete the msf file then we will lose all of this information. That's where we store it. That's like saying "if you delete the database you should still remember what I put in the database" :) I'm not sure we'll be fixing this unless David feels otherwise.
(In reply to comment #6) > all of the feed information is stored in the summary file. If you delete the > msf file then we will lose all of this information. That's where we store it. Not *all* of the information is in there, clearly; the subscription name, URL and target folder are all still available in the Manage Subscriptions dialog; and I thought that the "which articles have I already aggregated" list is stored in the .RDF files. Buf if there is some critical and un-recoverable data there, then what is the point of rebuilding the file? If the program starts up and discovers the MSF is missing, it should say, SORRY, DATABASE CORRUPT, not rebuild a corrupt MSF file and then fail silently. Ideally, since the sub information is apparently still there, it should ask if I want to resubscribe.
Scott, I think we should probably try to do something like we do for virtual folders, which is to store the information in a global place, and in the .msf file, so that we can rebuild the .msf file if we need to. I feel bad because I think I led us down the path we're on...but I found out the hard way with virtual folders that people do delete the .msf files...
Attached patch proposed fixSplinter Review
Many thx to Scott for the RDF-fu. This fix checks if the url is null for a folder, and if so, recreates it from the subscriptions ds, and then resets it in the db.
Assignee: mscott → bienvenu
Status: NEW → ASSIGNED
Comment on attachment 166944 [details] [diff] [review] proposed fix ignore the part about passing in null for the msg window - that's an experiment...
Attachment #166944 - Flags: superreview?(mscott)
Attachment #166944 - Flags: superreview?(mscott) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
This patch appeared to fix my problem; all the old feeds that I'd never resub'd to immediately fetched new items when I started TB 0.9+1126.
Flags: blocking-aviary1.0?
Component: RSS → Feed Reader
Product: Thunderbird → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: