RSS fails to recognize relative URLs
Categories
(MailNews Core :: Feed Reader, defect)
Tracking
(Not tracked)
People
(Reporter: macho.p, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Subscribe to an RSS feed that uses relative URLs, for example https://www.priv.gc.ca/en/rss/news/
Actual results:
You get only the feed item titles. No hyperlinks to the actual items.
Expected results:
You should get hyperlinks. When Thunderbird sees, e.g., "<link>/en/opc-news/news-and-announcements/2020/op-ed_200908/</link>", it shouldn't balk at this as a malformed link, but instead recognize that it needs to prepend the domain of the main feed, i.e. "https://www.priv.gc.ca/".
Other software, even the IE browser, seems to handle this situation just fine.
Comment 1•6 years ago
|
||
I had no trouble subscribing to the feed even though it doesn't validate
I don't think there is a <link></link> HTML tag in the messages.
Here is the source of one of the messages.
From - Tue, 08 Sep 20 00:00:00 -0400
X-Mozilla-Status: 0041
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Received: by localhost; Wed, 14 Oct 2020 19:27:24 -0400
Date: Tue, 08 Sep 20 00:00:00 -0400
Message-Id: </en/opc-news/news-and-announcements/2020/op-ed_200908/@localhost.localdomain>
From: <Newsroom>
MIME-Version: 1.0
Subject: Op-ed: The value of data, the values of privacy
Content-Transfer-Encoding: 8bit
Content-Base:
Content-Type: text/html; charset=UTF-8
<html>
<head>
<title>Op-ed: The value of data, the values of privacy</title>
<base href="">
</head>
<body id="msgFeedSummaryBody" selected="false">
Op-ed
</body>
</html>
and I see exactly what is between the <body></body> tags.
How did you install the IE browser on Linux, and what link did you use?
Updated•6 years ago
|
Updated•6 years ago
|
| Reporter | ||
Comment 2•6 years ago
|
||
Thanks,
When I open the file at https://www.priv.gc.ca/en/rss/news/ in a text editor, I see a feed that does include a link flag for that item. I specifically see this:
<item><title><![CDATA[Op-ed: The value of data, the values of privacy]]></title><link>/en/opc-news/news-and-announcements/2020/op-ed_200908/</link><description><![CDATA[Op-ed]]></description><pubDate>Tue, 08 Sep 20 00:00:00 -0400</pubDate><guid isPermaLink="true">/en/opc-news/news-and-announcements/2020/op-ed_200908/</guid></item>
Based on what you've posted above, which seems to represent how Thunderbird has parsed this item when it creates a message out of it, it looks like the <link> tag in the feed is misidentified as a username or email address, and so Thunderbird has appended "@localhost" and shoved it into the "Message-Id" field.
I hope that helps, but just let me know if I've misunderstood or if you need anything else.
Comment 3•6 years ago
|
||
There isn't any link in the source files of any of the posts in that feed, and the feed doesn't validate.
If the publisher wants to use relative urls, a protocol that supports that must be used: Atom. Relative urls in a properly constructed Atom feed will be handled by the feed parser. For rss2.0, the syntax is invalid; absolute urls need to be used.
Description
•