The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Stupid bug fix of the day

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Stupid bug fix of the day Posted: Mar 15, 2006 11:53 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Stupid bug fix of the day
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Stupid in this case meaning my code :) I was looking at the bug list for BottomFeeder on SourceForge yesterday, and found a bug I should have dealt with a long while back:

(url here) is an example of a feed that doesn't have dates attatched to items.

I cannot sort items within a sub-folder by date if the folder includes such a feed.

Well, that seemed like something that shouldn't happen. I thought I was assigning default timestamps to items without them, but it turns out I wasn't. Why, I'm not sure; I guess it hadn't come up before. In any case, it was a simple fix. After getting an Item object from a feed, I have post processing code to clean up problems. That code does things like:

  • Insert default titles
  • Add the current time as the point of last update
  • If there's no link, and the GUID looks like an URL, consider it the link as well

And now, it goes ahead and slaps a timestamp on items that are missing them. Most of this only applies to RSS; the Atom spec mandates behavior in these areas, so it's less of a problem.

Read: Stupid bug fix of the day

Topic: Paranoid delusions Previous Topic   Next Topic Topic: Weekly Log Analysis: 3/11/06

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use