Closed marco44 closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
what can i do to have this not stale ? :)
Get someone to look into it.
I found the error, sorry I got a bit shy while looking at this bug initially, I was afraid I'd have to dig into doctrine… It's this RSS: https://mikrotik.com/current.rss, other RSS work.
It starts like this:
<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><language>en-us</language><title>MikroTik Current</title><link>https://mikrotik.com/</link><atom:link href="//mikrotik.com/current.rss" rel="self" type="application/rss+xml" /><copyright>Copyright 2021, Mikrotikls Ltd</copyright><generator>MikroTik Rss</generator><ttl>60</ttl><description>Feed for newest RouterOS updates.</description><item><title>RouterOS 6.48.3 [Stable]</title><link>https://mikrotik.com/download/changelogs/stable</link><description><![CDATA[ <p><h3>6.48.3 changelog:</h3>MAJOR CHANGES IN v6.48.3:<br />
I don't really know why (I don't know the RSS spec that much), but it takes //mikrotik.com/current.rss
as the url (see the SQL error message), which, if I understand this correctly:
public function setUrl(string $url): Feed
{
$url = trim($url);
if (strpos($url, 'http') === 0 && $this->url !== $url) {
$this->url = $url;
$this->setUrlHash(md5($url));
$this->markFieldUpdated('url');
}
return $this;
}
doesn't trigger the hash computation, as it doesn't start with http. I don't know if the RSS itself is wrong, but anyway that shouldn't trigger this kind of crash, I think.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I get the same error, although in my case the URL is https://linux-system-roles.github.io/atom.xml . I'm using Nextcloud 23.0.1 from Docker Hub, MariaDB 10 and News 17.0.1. I can generate the system report and post the link if it helps.
Oh, by the way, for these feeds, unchecking "auto discover feed" seems to be a workaround
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I believe the feed https://explosm.net/rss.xml is also affected from this issue, but unchecking "Auto discover Feed" indeed works around the issue.
this should be resolved by https://github.com/alexdebril/feed-io/pull/405 once accepted and pulled into Nextcloud News.
until then, disabling the discovery feature for affected feeds should allow the feeds to be added successfully.
I also changed the behaviour of news to only use discover if the provided url doesn't already contain a feed.
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
Can't subscribe to a feed anymore
Steps to Reproduce
Add a feed Get this error:
url_hash is indeed a column of the table and "not null"
System Information