Problem with Tim Bray's ongoing blog

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
abatkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 25 Jun 2013, 07:11

Problem with Tim Bray's ongoing blog

Postby abatkin » 25 Jun 2013, 07:21

I have been using tt-rss for the past few versions (I'm on 1.8 now) but have found that it seems to have trouble correctly parsing Tim Bray's ongoing blog which is in Atom format.

There are actually two issues, which I suspect are unrelated. I may be able to take a look into this at some point, but figured I'd see if anyone else already knew what was wrong or had looked in to it first.

The first issue is that the links back to posts are all wrong. For example, the post "Two Factor, Twice" should link to https://www.tbray.org/ongoing/When/201x ... Two-Factor but in in tt-rss the link points to http://www.tbray.org/ongoing/Two-Factor. I think the problem is that the xml:base attribute (which in the case of this post contains "When/201x/2013/06/24/") is not being honored.

The second issue is that the body is never rendered properly. Actually, looking back, it seems that now the body of each post isn't rendered at all, at least for the past few months. Maybe this is some sort of HTML sanitization issue? His posts are all "content type='xhtml'"

Ideas? Thanks!
Last edited by abatkin on 25 Jun 2013, 16:07, edited 1 time in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Problem with Tin Bray's ongoing blog

Postby fox » 25 Jun 2013, 09:08

Best part is that you never bothered to post the actual feed url, nevermind trying on latest trunk.

abatkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 25 Jun 2013, 07:11

Re: Problem with Tim Bray's ongoing blog

Postby abatkin » 25 Jun 2013, 16:11

Sorry, minor oversight (I thought he was notable enough that you would know what I was talking about). His blog is https://www.tbray.org/ongoing/ and the feed URL is https://www.tbray.org/ongoing/ongoing.atom

I haven't tried on the latest trunk because the bug has been there for the past few tt-rss releases so I have no reason to believe that it would have suddenly been fixed in trunk. But of course I could be wrong, and if that's the case I can set up a test site to try it out and report back.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Problem with Tim Bray's ongoing blog

Postby fox » 25 Jun 2013, 16:28

>Sorry, minor oversight (I thought he was notable enough that you would know what I was talking about).

Yes obviously everyone on the planet knows and cares about stupid blogs you read. Get over yourself.

>I haven't tried on the latest trunk because the bug has been there for the past few tt-rss releases so I have no reason to believe that it would have suddenly been fixed in trunk.

Are you seriously so socially inept as to not realize that it is basic politeness to check if your problem may be already fixed before reporting it? The underlying logic of "it hasn't been fixed before therefore it won't be fixed ever" is completely beyond me either.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Problem with Tim Bray's ongoing blog

Postby sleeper_service » 26 Jun 2013, 01:46


timbray
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 26 Jun 2013, 03:34

Re: Problem with Tim Bray's ongoing blog

Postby timbray » 26 Jun 2013, 03:36

I’m pretty sure the feed is correct, but I’m also aware that it causes problems for lots of readers. It makes heavy use of relative URIs, check out all the xml:base values and so on. Since I helped design the Atom format, I deliberately used the constructs in the feed to explore corner cases.

abatkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 25 Jun 2013, 07:11

Re: Problem with Tim Bray's ongoing blog

Postby abatkin » 26 Jun 2013, 06:57

Awesome celebrity cameo appearance.

Running from the master branch appears to resolve the xhtml content issues.

The links are all still broken though (this affects both links back to posts themselves, as well as to any relative URLs within the (x)html content, like img or a tags). I've been looking through the source, but I think fixing this may be more difficult than I can handle myself. The issue is that (from what I have read) xml:base can appear almost anywhere, and they "stack", so for every link, you would need to walk up the DOM, pushing any xml:bases onto a stack, then popping them back off once you are done, to assemble the "final" URL. Even for the actual (x)html content, you would at least have to (potentially) build up an xml:base for the root of that content before displaying it (at least there you don't have to actually parse the markup, since you would expect the browser to handle anything in there).

Thoughts?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Problem with Tim Bray's ongoing blog

Postby fox » 26 Jun 2013, 08:15

Yeah xml:base is not supported, as far as I'm concerned this is too much absurd atom fuckery to deal with. I'm definitely not losing any sleep over it and sperglords who want to save a few bytes so much.

User avatar
ICE
BANNED_USERS
BANNED_USERS
Posts: 3
Joined: 29 Jun 2013, 20:58

Re: Problem with Tim Bray's ongoing blog

Postby ICE » 29 Jun 2013, 21:06

Hi Fox,
RSS of rutracker.org also uses xml:base.
So I'm also interested about this functionality.
As far as I understood function Article::create_published_article is responsible for creation articles.
It uses $url as variable with article URL.
I've found occurrences of this method few times through the code (shareToPublished and sharepopup).
But Its not easy to found out the right place that must be corrected.
I know PHP so-so ans I want to help you with this issue.

Could you please give me some details: where exactly is it good to correct the problem and where can I get raw atom content (I can try to found out it myself my I believe it is better to ask author as you are the one who better then others knows architecture).

Thank you.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Problem with Tim Bray's ongoing blog

Postby fox » 29 Jun 2013, 22:52

Please post in English. If you don't know English, stop posting.

User avatar
ICE
BANNED_USERS
BANNED_USERS
Posts: 3
Joined: 29 Jun 2013, 20:58

Re: Problem with Tim Bray's ongoing blog

Postby ICE » 29 Jun 2013, 22:57

1) What is the problem with my English?
2) Don't you need some help?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Problem with Tim Bray's ongoing blog

Postby fox » 29 Jun 2013, 23:03

>1) What is the problem with my English?

The problem is that you can't speak it.

>2) Don't you need some help?

See above.

User avatar
blainemono
Gaping Anus of Eternity
Gaping Anus of Eternity
Posts: 246
Joined: 05 Jun 2009, 18:13

Re: Problem with Tim Bray's ongoing blog

Postby blainemono » 29 Jun 2013, 23:08

hello niko this is your brother roman i need help with downloading american imperialist torrents also bowling

User avatar
ICE
BANNED_USERS
BANNED_USERS
Posts: 3
Joined: 29 Jun 2013, 20:58

Re: Problem with Tim Bray's ongoing blog

Postby ICE » 29 Jun 2013, 23:32

>>The problem is that you can't speak it.
Sure, if you prefer we can talk about grammar here, but anyway please comment your complain.

And sure it is very rough to talk like you did (see above).
Please be more polite, it is not an english classes here.

User avatar
blainemono
Gaping Anus of Eternity
Gaping Anus of Eternity
Posts: 246
Joined: 05 Jun 2009, 18:13

Re: Problem with Tim Bray's ongoing blog

Postby blainemono » 29 Jun 2013, 23:40

hello nico roman is getting upset


Return to “Support”

Who is online

Users browsing this forum: No registered users and 7 guests