-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resubscribe to recently-deleted feed #1412
Comments
This is actually a feature that allows some clients to undo deletion. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Alright so... how do we fix it? In the standard, fresh-install web client, there's no obvious way to resubscribe to a recently deleted feed, so making the 'add feed' option specifically not work in this scenario makes no real sense in my opinion as an end-user. Deleted feeds are also inaccessible through occ, so even if I could re-add them that way, I can't find them in order to re-add them. Why are duplicate feeds even designed to not work in the first place? |
That sounds like a web bug because there used to be one for years.
Because it makes sense to identify feeds by their URL and you can't have duplicate identifier information, otherwise it's not identifying anymore. |
I installed News 16.0.1 and ran into this bug, too. There's no list of deleted subscriptions to restore from and when trying to resubscribe, even after more than the 5-minute cron interval, results in an error that the URL exists. If the URL exists, but is marked deleted, then re-adding the subscription can just restore the existing subscription entry. |
Hi, yea the front-end is not maintained, nobody so far was interested and skilled enough to fix it. And since it's already so old lots of the libraries it uses are not supported anymore. So I'm starting to consider removing the front-end entirely, as it has to completely break at some point. In the meantime for me, reloading the page has always helped, seems like the entry gets stuck in the menu. |
Hello, maybe the same here. Here are the feed-urls: https://www.mailstore.com/de/feed/?utm_source=blog-feed&utm_medium=rss&utm_campaign=blog-rss-de |
Hey I think there are two possible causes for this. Either you actually still have this feed in your dB and the backend finds it can complains. Or you don't have that feed anymore but it is still stuck in your webclient session. Usually when you delete a feed, it still stays in the list with a small arrow symbol next to it. The issue I often had in testing that also after some waiting I couldn't add the feed again, refreshing the page in the browser helped in that case. But at the top in the original issue you also said that you didn't see the error, news has a spot at the top in the UI to display errors in a red box. So I don't know maybe the web-ui is falling apart for you now. Code to old and suspicious, so that your browsers filter some stuff out. Some more general architectural thoughts: Maybe also the "newly" introduced update method interferes with the deleting process. As we switched from running with every Cron to a timed job, for which you can configure the the settings in the admin page. Having a restore function is I guess more user-friendly but I don't think most clients implemented it with the current API. |
Hi Grotax, thanks for your reply. Maybe i found the reason for "my problem". After some more tests with adding and deleting other feeds, which works like expected, i found out only the MailStore-Feed doesnt work. This feed doesnt work with other feedreader, too, so i came to the conclusion that there must be something wrong with this one. I looked at the feed-xml with an browser and wondering why it starts like this:
The "/" at the beginning is wrong (so far as i know). After my today tests i found entries likes this within the "nextcloud.log": ... "app":"news","method":"POST","url":"/index.php/apps/news/feeds","message":"https://www.mailstore.com/de/feed/ read error : this document is not a XML stream","... I have no idea why i missed this yesterday, there are no entries like this in the past. Well, i contacted the feed-creator and discribed the problem. |
The creator fixed the newsfeed, so my problem is solved. |
I actually find this "feature" to be a problem when developing a client. Being able to quickly delete and re-add feeds would greatly help when debugging a client. |
Yea I'm also not a big fan of it, at least not in the current form. Not sure how easy that is to implement, news is older than Nextcloud itself so yea.. |
I have the same problem. It's so annoying I hope it gets fixed soon. Yours sincerely |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still having this exact issue today. |
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
What problem did you encounter?
If I delete a feed and immediately (or shortly) after that try to resubscribe to the same feed, the feed is not added. No useful error message ist shown, but if I check the browser console network tab, I see a response
I had a look at the
oc_news_feeds
table and indeed an entry with the URL I deleted and tried to resubscribe still exists, but with non-zerodeleted_at
. I guess this means that this entry is marked as deleted but the actual deletion will happen only when the cron job runs the next time? To check this, I ranand after that I could successfully resubscribe to the just-deleted feed.
I guess this problem would have solved itself if I had just waited a while for the cron job to run. Still, it would probably be better to just immediately purge a feed with non-zero
deleted_at
when someone tries to subscribe to it again.Steps to Reproduce
occ news:updater:before-update
System Information
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put hereThe text was updated successfully, but these errors were encountered: