Opened 3 years ago
Doesn't work with password protected feeds
|Reported by:||anonymous||Owned by:||smithsos|
feedparser allows passing a username and password in the URl like this:
See the docs here: http://feedparser.org/docs/http-authentication.html.
However this doesn't work in RssEmbed because the macro also passes the URL to the urlopen function, which doesn't understand the syntax: it thinks 'password' is a port because of the semicolon. I guess the urlopen is done to provide more detailed error reporting in the event of a failure, but in this case it causes the failure.
Workaround is to comment out the call to urlopen.
Maybe a proper fix would involve passing the username and password as separate parameters, then urlopen could still be called on the actual url. The macro would then construct the extended url expected by feedparser.
Tested with trac 0.12b1.