Closed Bug 362502 Opened 19 years ago Closed 18 years ago

TB-3a1 shouldn't create a rss folder when that rss link is Invalid

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nir.sen, Assigned: eagle.lu)

References

()

Details

Attachments

(1 file, 3 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061201 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061201 Minefield/3.0a1 Using TB-3a1 (20061201) under Fedora Core 5. Trying to subscribe to this rss link 'http://www.ddinews.gov.in/rssCMS/rss.aspx'. So I have clicked on 'News & Blog' account > Subscribe > Add > Paste 'http://www.ddinews.gov.in/rssCMS/rss.aspx' url when I clicked on 'Ok' , TB shows 'http://www.ddinews.gov.in/rssCMS/rss.aspx is not a Valid Rss feed' but meanwhile It has already created an entry for that rss link under 'News & Blogs' account. Reproducible: Always Steps to Reproduce: 1.Right click on 'News & Blogs' account > Subscribe > Add 2.Paste 'http://www.ddinews.gov.in/rssCMS/rss.aspx' url 3.click on 'Ok' Actual Results: TB shows an 'Invalid rss feed' alert but also creates an entry related to that feed under 'News & Blogs' Expected Results: TB shouldn't create any entry under 'News & Blogs' account when rss link is invalid TB should check rss link first before creating an entry under 'News & Blogs' account
Version: unspecified → Trunk
Attachment #268326 - Flags: review?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 268326 [details] [diff] [review] Don't create folder when feed is invalid adding a name to the review field. :)
Attachment #268326 - Flags: superreview?(mscott)
Attachment #268326 - Flags: review?(philringnalda)
Attachment #268326 - Flags: review?
Sorry for the slow review - I should have time for it this weekend.
Comment on attachment 268326 [details] [diff] [review] Don't create folder when feed is invalid >+var InvalidFeed = false; Please make that a property of the Feed object, rather than a global. > storeNextItem: function() > { >+ if (InvalidFeed) >+ { >+ InvalidFeed = false; >+ return; That's both too late to check, and too early to return: since you already know it's invalid before parse() calls storeNextItem(), there's no need to call it, but quitting without hitting cleanupParsingState() means this.request doesn't get nulled out.
Attachment #268326 - Flags: review?(philringnalda) → review-
Assignee: mscott → brian.lu
Attachment #268326 - Attachment is obsolete: true
Attachment #268326 - Flags: superreview?(mscott)
Attachment #270697 - Flags: review?(philringnalda)
Comment on attachment 270697 [details] [diff] [review] modified according to Phil Ringnalda's comments Sorry, I misled you by talking about hitting cleanupParsingState() - I didn't mean that you should call it (since most of it is useless when you know you haven't parsed out any items), just that you should do the same this.request = null; as it. Once more, and then we can see what mscott says I missed.
Attachment #270697 - Flags: review?(philringnalda) → review-
Attachment #270697 - Attachment is obsolete: true
Attached patch new patch (obsolete) — Splinter Review
Attachment #270867 - Flags: review?(philringnalda)
Attachment #270867 - Flags: superreview?(mscott)
Attachment #270867 - Flags: review?(philringnalda)
Attachment #270867 - Flags: review+
Attached patch UnrottedSplinter Review
Wups, forgot that I was going to attach a version with a little less bitrot.
Attachment #270867 - Attachment is obsolete: true
Attachment #271000 - Flags: superreview?(mscott)
Attachment #271000 - Flags: review+
Attachment #270867 - Flags: superreview?(mscott)
Comment on attachment 271000 [details] [diff] [review] Unrotted this seems reasonable to me.
Attachment #271000 - Flags: superreview?(mscott) → superreview+
(In reply to comment #9) > (From update of attachment 271000 [details] [diff] [review]) > this seems reasonable to me. > Scott, can you check in the patch? Thanks
See http://developer.mozilla.org/devnews/index.php/2007/07/10/getting-a-patch-checked-in/ - even though it's less reliable for Tbird, it may prove more reliable than asking Scott on a bug he's not cc'ed on :)
Keywords: checkin-needed
mail/extensions/newsblog/content/Feed.js 1.50
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
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

Creator:
Created:
Updated:
Size: