Closed
Bug 356362
Opened 18 years ago
Closed 18 years ago
Feed date parser breaks on news.google.com's atom feed's out-of-spec dates
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Firefox Graveyard
RSS Discovery and Preview
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mozbugs, Unassigned)
References
()
Details
Attachments
(2 files)
693 bytes,
patch
|
Details | Diff | Splinter Review | |
103.78 KB,
application/atom+xml
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2)
Build Identifier:
news.google.com's atom feed has dates like:
2006-010-12T00:16:45+00:00
Note the 3 digit month: "010"
While this is clearly a spec violation, I think the feed code should be as forgiving as reasonably possible, especially for a popular site like google news.
Reproducible: Always
Reporter | ||
Comment 1•18 years ago
|
||
This new regexp handles this. I changed the rest of the regexp to use curly brace numerical matching just for consistency.
Comment 2•18 years ago
|
||
(In reply to comment #0)
> While this is clearly a spec violation, I think the feed code should be as
> forgiving as reasonably possible, especially for a popular site like google
> news.
Things to consider:
How IE 7 behaves.
How Safari behaves.
How other popular aggregators behave.
Willing to take a fix here, but not if we end up creating an Atom profile.
Comment 3•18 years ago
|
||
Comment 4•18 years ago
|
||
OK, Safari deals with that.
Comment 5•18 years ago
|
||
NetNewsWire shows the wrong date.
"01/01/06 12:00am".
Reporter | ||
Comment 6•18 years ago
|
||
IE7 doesn't handle this.
Reporter | ||
Comment 7•18 years ago
|
||
Safari looks like it doesn't handle it either, and substitutes the current date instead. (OS X 10.4.8)
Comment 8•18 years ago
|
||
(In reply to comment #7)
> Safari looks like it doesn't handle it either, and substitutes the current date
> instead. (OS X 10.4.8)
>
Oh yeah, you're right. Thunderbird will probably do that too.
Comment 9•18 years ago
|
||
Hmm, universal feedparser add support for this yesterday.
http://feedparser.cvs.sourceforge.net/feedparser/feedparser/feedparser.py?r1=1.141&r2=1.142
"support for google dates". Hehe.
Thinking this over, we should take this. We're not particularly strict with date formatting anyway, since we accept RFC822, IS08601, and Unix timestamps in all date fields in all formats.
r=sayrer if you add unit tests for RSS1, RSS2, and RFC4287.
Reporter | ||
Comment 10•18 years ago
|
||
Do you mean specific unit tests for "google dates" or ISO8601 dates in general?
Comment 11•18 years ago
|
||
Google News doesn't serve this junk anymore. I don't feel strongly about not taking this patch. Reopen if you still want to land this w/ test case.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Comment 12•18 years ago
|
||
(In reply to comment #10)
> Do you mean specific unit tests for "google dates" or ISO8601 dates in general?
>
I meant "google dates". Again, feel free to reopen.
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•