ElkArte Community

Title: Rss broken
Post by: radu81 on April 23, 2016, 09:03:36 pm
http://www.elkarte.net/community/index.php?action=.xml;type=rss2;limit=5
Title: Re: Rss broken
Post by: kucing on April 24, 2016, 02:47:16 am
what is broken? I can access it just fine, the formatting is good too.
Title: Re: Rss broken
Post by: emanuele on April 24, 2016, 03:42:05 am
The only thing I can't see is the logo, that was using the directory and not the url. Fixed (the atom version too).
The other thing could have been the fact only 5 items are shown even increasing the limit parameter, but that is likely due to the fact it is limited on the admin panel.

Is there anything else broken?
Title: Re: Rss broken
Post by: radu81 on April 24, 2016, 05:40:18 am
It was the logo I think, I saw some links like /var/www/... but seems OK now

Sorry for not giving more info first, I was in a rush
Title: Re: Rss broken
Post by: Adrek on April 24, 2016, 06:37:21 am
maybe stupid question, but..

In ElkArte 1.0 RSS feed looks like this:
(http://i.imgur.com/MQD6erf.png)

In 1.1 it should be like this:
(http://i.imgur.com/VIbgZwr.png)

?

And there is small issue with urls - for me any url from feed shows only homepage (here on elkarte.net).
Title: Re: Rss broken
Post by: Frenzie on April 24, 2016, 08:15:22 am
@phantom What's the question exactly? :P
Title: Re: Rss broken
Post by: Adrek on April 24, 2016, 08:59:36 am
I showed on images: old 1.0  formatting, and 1.1 has nothing - no title, description and other tags.
Second part about not working url is clear I hope.
Title: Re: Rss broken
Post by: Frenzie on April 24, 2016, 10:04:09 am
But it does? Are you referring to how a particular browser happens to render the XML if you just view it?

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en-US">
<channel>
<title>ElkArte Community</title>
<link>http://www.elkarte.net/community/index.php</link>
<description><![CDATA[Live information from ElkArte Community]]></description>
<generator>ElkArte</generator>
<ttl>30</ttl>
<image>
<url>http://www.elkarte.net/community/themes/default/images/_light/logo_elk.png</url>
<title>ElkArte Community</title>
<link>http://www.elkarte.net/community/index.php</link>
</image>
<item>
<title>Re: Rss broken</title>
<link>http://www.elkarte.net/community/index.php/topic,3582.msg25424.html#msg25424</link>
<description>
<![CDATA[I showed on images: old 1.0  formatting, and 1.1 has nothing - no title, description and other tags.<br />Second part about not working url is clear I hope.]]>
</description>
<category><![CDATA[Bug Reports]]></category>
<comments>http://www.elkarte.net/community/index.php?action=post;topic=3582.0</comments>
<pubDate>Sun, 24 Apr 2016 12:59:36 GMT</pubDate>
<guid>http://www.elkarte.net/community/index.php/topic,3582.msg25424.html#msg25424</guid>
<dc:creator>phantom</dc:creator>
</item>
Title: Re: Rss broken
Post by: Adrek on April 24, 2016, 11:01:01 am
hm.. both my screens were taken on latest Chrome (on Windows 8.1), don't know why they are different
Title: Re: Rss broken
Post by: emanuele on April 24, 2016, 12:28:24 pm
hmm... I'd say 1.1 sends a wrong type in the header (i.e. html), so chrome wraps everything into an html tag.
That sounds like another bug, good catch both of you! :D
Title: Re: Rss broken
Post by: emanuele on April 24, 2016, 01:08:27 pm
Now it should be working fine.
The problem was that the Content-Type header was sent twice and Chrome apparently picks the last sent.

Fixed in 5a4ebeb0020c71a4d0949ea80b801b9e8aff5577