Ticket #1199 (new defect)

Opened 4 months ago

Atom Feed Broken on 5.0.2

Reported by: slaingod Assigned to: scott
Priority: normal Milestone:
Component: frontend Version:
Severity: normal Keywords:
Cc:

Description

In views/articles/_atom_feed.atom.builder:

line #6 should be

feed.updated atom_feed.first.updated_at if atom_feed.first

(added conditional) otherwise it will always fail when there is no feedback.

and

xml_controller.rb line #28 should be (or something like this):

head :moved_permanently, :location => formatted_article_url(Article.find(:first, :conditions => ["permalink = ?",params[:id]]), @format)

Otherwise it tries to match params[:id] which is the permalink, as an actual Article.id.