Bug 488799 - Fails to add valid RSS feed through GUI and crashes using CLI with --addfeed option
Summary: Fails to add valid RSS feed through GUI and crashes using CLI with --addfeed ...
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: feed parser (other bugs)
Version First Reported In: 5.24.5
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 16:24 UTC by Graeme Hewson
Modified: 2024-06-20 19:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graeme Hewson 2024-06-20 16:24:13 UTC
Unable to add https://greenparty.org.uk/feed/. The W3C Feed Validation Service says "This is a valid RSS feed", with zero warnings: 
http://validator.w3.org/feed/check.cgi?url=https%3A//greenparty.org.uk/feed/

STEPS TO REPRODUCE
1. Click Feed / Add Feed
2. In Feed URL box enter https://greenparty.org.uk/feed/ and click OK
3. Popup error box says "Feed not found from https://greenparty.org.uk/feed/."

I tried with the --addfeed option. I first renamed ~/.local/share/akregator to ~/.local/share/akregator.bak. This was the result:

$ akregator --addfeed https://greenparty.org.uk/feed/
"https://dot.kde.org/rss.xml"
"https://www.linux.com/feed/"
"https://planet.kde.org/global/atom.xml"
"https://store.kde.org/content.rdf"
"https://planet.kde-espana.org/atom.xml"
"http://planet.ubuntu.com/rss20.xml"
"http://feeds.feedburner.com/ubuntu-fridge"
"http://www.kubuntu.org/news/feed"
"unexpected character" on line 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = akregator path = /usr/bin pid = 678451
KCrash: Arguments: /usr/bin/akregator --addfeed https://greenparty.org.uk/feed/
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi

[1]+  Stopped                 akregator --addfeed https://greenparty.org.uk/feed/

===

Perhaps the problem is that line 1 of the feed has both the xml version and the rss version. The feed starts:

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Green Party</title>
    <atom:link href="https://greenparty.org.uk/feed/" rel="self" type="application/rss+xml" />
    <link>https://greenparty.org.uk/</link>
    <description>Real hope. Real change.</description>
    <lastBuildDate>Wed, 19 Jun 2024 07:54:06 +0000</lastBuildDate>
    <language>en-GB</language>
    <sy:updatePeriod>
    hourly  </sy:updatePeriod>
    <sy:updateFrequency>
    1   </sy:updateFrequency>
    <generator>https://wordpress.org/?v=6.5.4</generator>
    <item>
Comment 1 Laurent Montel 2024-06-20 19:33:04 UTC
I fixed it in 6.x.x
Please update your akregator.
Regards