Page 1 of 1

Atom Feed, can't get subscription to work

Posted: Thu Mar 28, 2013 11:27 am
by 394865
Hi all, I'm new to atom feeds so maybe I'm doing something stupid.

Trying to subscribe to the LibreOffice fixed bug feed.

Browser URL: https://bugs.freedesktop.org/buglist.cg ... _based_on=

Atom Feed: https://bugs.freedesktop.org/buglist.cg ... ctype=atom

But when I add that Atom-Feed to Vienna, I get the yellow warning sign and no items show up in that feed.

Any ideas what I could be doing wrong here?

Re: Atom Feed, can't get subscription to work

Posted: Thu Mar 28, 2013 6:38 pm
by barijaona
The problem seems server side.

The URL provided for the feed returns in fact an HTML file, not an ATOM file. The reason : the URL contains a space.

If you remove this space ("BugList" instead of "Bug List") and you use Unix's curl command, you get an Atom file :

Code: Select all

https://bugs.freedesktop.org/buglist.cgi?bug_status=__closed__&content=&product=LibreOffice&query_format=specific&order=changeddate%20DESC%2Cbug_status%2Cpriority%2Cassigned_to%2Cbug_id&query_based_on=buglist.cgi?bug_status=__closed__&content=&product=LibreOffice&query_format=specific&title=BugList&ctype=atom
But the answer is so slow (here, it takes more than 3 minutes for curl to complete…) that all feed readers that I have tested time out.

Re: Atom Feed, can't get subscription to work

Posted: Thu Mar 28, 2013 7:08 pm
by barijaona
Just for fun, I increased the refresh timeout from 20 seconds to 300 seconds, and Vienna got 9556 articles going back as far as year 2010… Let's see if there are adverse side effects !

[Edit] Almost 20 Mbytes of data downloaded at each refresh… It's almost absurd, and quite counter-productive for the server... But Vienna seems to handle the situation correctly.

Re: Atom Feed, can't get subscription to work

Posted: Fri Mar 29, 2013 1:04 am
by 394865
barijaona: Thanks a lot for looking into this and doing some tests. Hm, I can imaging that with 7761 open bugs the first fetching is insane. What I wanted was that only changes where fetched then. Meaning a bug gets changed and I get that in the feed. Obviously I'm looking for something that is not there.

What would I need to request from the LO-team to do just that? It must be possible I imagine and it could be very helpful for devs and interested users alike to have such a stream of changed bugs.

The situation for the fixed bugs is even worse because that list is even longer. Bugzilla itself deals with this by only displaying the last 500 bugs. But if on every update 500 times are fetched it's not really what I was looking for.

If you could help me formulate what I need, I'd be more than happy to open a ticket with the LO guys and maybe they can implement a feed option that does what I'm looking for.

Re: Atom Feed, can't get subscription to work

Posted: Fri Mar 29, 2013 3:21 am
by barijaona
Playing around with the links displayed by the Bugzilla system, I discovered that to satisfy your need, you just need to add two self-explanatory parameters to the browser URL.
Just add

Code: Select all

&ctype=atom&limit=50
at the end of the browser URL to get a reasonable Atom file (50 is just a suggestion, a lower value would probably suffice).

So, referring to the first post of this message, a good URL would be :

Code: Select all

https://bugs.freedesktop.org/buglist.cgi?bug_status=__closed__&content=&product=LibreOffice&order=changeddate%20DESC%2Cbug_status%2Cpriority%2Cassigned_to%2Cbug_id&ctype=atom&limit=50
I would just suggest to the LibreOffice team to check if they can change their defaults, currently they just look insane !

Re: Atom Feed, can't get subscription to work

Posted: Fri Mar 29, 2013 12:55 pm
by 394865
Yey :smile:

This works great and actually solves my problem. Do you think it would be useful for the LO team to provide those feeds as an option? Since the feed currently offered seems unusable?

Re: Atom Feed, can't get subscription to work

Posted: Fri Mar 29, 2013 9:57 pm
by barijaona
These options should be the default, in my opinion.

Re: Atom Feed, can't get subscription to work

Posted: Sat Mar 30, 2013 11:58 am
by 394865
Perfect. I opened a ticket with the LO-team. Hope they will fix this. But now that this is in the system chances aren't too bad. Thanks for your help.
https://bugs.freedesktop.org/show_bug.cgi?id=62935