Skip to content
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

Error while adding gazzetta.it rss feeds #1260

Open
Paolo7297 opened this issue Feb 21, 2024 · 5 comments
Open

Error while adding gazzetta.it rss feeds #1260

Paolo7297 opened this issue Feb 21, 2024 · 5 comments

Comments

@Paolo7297
Copy link

Whenever I try to add a gazzetta.it feed (Like https://www.gazzetta.it/dynamic-feed/rss/section/Calcio/Serie-A.xml), it throws this error: org.xml.sax.SAXParseException: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true..
There's a way to bypass the error? It works great in other rss reader.
Thanks!

Screenshot 2024-02-21 alle 14 21 15

@Athou
Copy link
Owner

Athou commented Feb 21, 2024

There is a DOCTYPE declaration at the top of the feed, which is unusual.

image

The parser CommaFeed is using actively blocks feeds with a DOCTYPE declaration for security reasons (see rometools/rome#203 and https://en.wikipedia.org/wiki/Billion_laughs_attack).

Maybe I can remove the DOCTYPE from the XML before the parsing occurs, I'll see what I can do.

In the mean time, you could contact the website to ask them to remove the DOCTYPE declaration.

@Paolo7297
Copy link
Author

Thanks!
Actually their contact form isn't working, I hope it will in the next days

@travisbeard
Copy link

I also have several that could not be imported when switching from feedly. It would be nice to have an option ignore.

@Athou
Copy link
Owner

Athou commented Apr 11, 2024

I also have several that could not be imported when switching from feedly. It would be nice to have an option ignore.

Do you get the same error as above? What are the feed urls that are not working?

@travisbeard
Copy link

This is no longer bothering me. I was able to find the sites all had 2 feeds, one with and one without. The website parser in commafeed finds the wrong one by default, but i was able to find the 2nd feed for all these sites worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants