Apparently valid RSS feeds cannot be added, reporting (mistakingly?) invalid XML
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
- [x] I have read the CONTRIBUTING.md and followed the provided tips
Explain the Problem
Some RSS feeds that are correctly functioning otherwise cannot be added nor read by nextcloud news. When registering the corresponding feed, it appears in a red box, stating that the corresponding xml file is invalid.
This was tested with the following RSS feed: http://huet.blog.lemonde.fr/feed/
Note: this is probably the same issue as reported in "Can't add xml feeds even feeds are validated OK #88" issue, that was closed as non-reproductible... I don't know if this new issue can pinpoint the origin of the problem...
Steps to Reproduce
Explain what you did to encounter the issue
- Add the rss feed address for registering it in the news
- The "Invalid XML" Error is obtained
System Information
- News app version: 12.0.1
- Nextcloud version: 13.0.0
- PHP version: 7.0.27
- Database and version: MariaDB, 10.1.26
- Browser and version: Any (tried with Firefox and Chromium)
- Distribution and version: Debian Sid on client, Debian Stretch (current stable) on server
Contents of nextcloud/data/nextcloud.log
no error reported there
Contents of Browser Error Console
Obtained from Firefox (original nextcloud address masked by XXX):
TypeError: can't convert undefined to object
Stack trace:
this.publishAll@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:15:29068
this.createFeed/<@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:15:14521
d/<@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:3:501
$digest@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:3:6043
$apply@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:3:7808
u@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:2:15061
y@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:2:17666
vt/</$.onload@https://XXX/apps/news/js/build/app.min.js?v=f6883a98-13:2:18088
Possibly unhandled rejection: {} angular.min.js:124
Feed is invalid, see https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fhuet.blog.lemonde.fr%2Ffeed%2F
OK, weird. I did validate the xml file there https://xmlvalidation.com/ , where it validates Seems to be an utf8 issue...