I'm using the Python universal feedparser to parse updates coming from
wordpress.com, but it's failing to extract the hub URL correctly. After
investigating the issue, I found out that when I pull the feed the first
time, I get a hub link correctly as follows:

*<atom:link rel='hub' href='
http://pinaysolobackpacker.wordpress.com/?pushpress=hub'/>*

Then later I receive a POST with updated content, but this time the hub link
is relative as follows:

*<atom:link rel='hub' href='/?pushpress=hub'/>*
*
*
*
*
I've setup my system to check the hub URL even on POST updates to detect any
potential changes that might happen after the initial subscription, so I try
to extract the hub url. Technically, I should expect either an xml:base
attribute or a Location http header to use to resolve the relative path[1].
Neither is provided. I can, of course, do an exception for
wordpress.comupdates and try to extract the domain name from my
database or from other
elements in the feed, but I'd hate to add exceptions if at all possible.

    Am I missing something, or is this a bug with Wordpress updates?

Regards,
Waleed



[1] http://www.feedparser.org/docs/resolving-relative-links.html

Reply via email to