Ticket #1248 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

RSS from content is broken

Reported by: teemu Owned by: anonymous
Priority: critical Milestone:
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining: 0h
Time spent:

Description

When looking for the RSS of the content page, link:

http://lemill.net/acl_users/credentials_cookie_auth/login_form?came_from=http%3A//lemill.net/content/RSS

the system asks you to "login" - in both cases; you are login or anonymous user.

Change History

comment:1 Changed 13 years ago by szabolcs

  • Summary changed from RSS from contnet is broken to RSS from content is broken

comment:2 Changed 13 years ago by pjotr

Ok. I see that on lemill.net but ...

It seems to be working here on my instance.

I suppose that should be checked on lemill.net itself then we'll be able to get the log for that.

comment:3 Changed 13 years ago by jukka

(In [1508]) Tests for RSS-feeds. Currently 3 of 4 fails. Refs #1248, refs #1226, refs #88. RSS-feeds for group blogs are not included if they're going to be changed into forums.

comment:4 Changed 13 years ago by jukka

This is weird. At lemill.net/content/RSS still gives this error, but at local instance with fresh copy of lemill.net:s Data.fs it works. Something we've done after 1.8.1 has fixed it, but cannot really say what it could have been.

Somehow one obj_item in rss_template.pt is wonky and fails to have even absolute_url. As this bad obj_item cannot be reproduced, I'll fix this template to ignore obj_item if it is this bad.

Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CMFPlone/skins/plone_templates/rss_template.pt
Expression: standard:u'obj_item/getURL|obj_item/absolute_url'
Names:
{'container': <PloneSite at /lemill-server>,
 'context': <LargeContentFolder at /lemill-server/content>,
 'default': <Products.PageTemplates.TALES.Default instance at 0xa722cb2c>,
 'here': <LargeContentFolder at /lemill-server/content>,
 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x9f7f7b4c>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xa722fb8c>,
 'nothing': None,
 'options': {'args': ()},
 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x9f7f7b4c>,
 'request': <HTTPRequest, URL=http://lemill.net/content/RSS>,
 'root': <Application at >,
 'template': <FSPageTemplate at /lemill-server/RSS used for /lemill-server/content>,
 'traverse_subpath': [],
 'user': jukka}
Module Products.PageTemplates.Expressions, line 185, in __call__
Module Products.PageTemplates.Expressions, line 173, in _eval
Module Products.PageTemplates.Expressions, line 127, in _eval
__traceback_info__: obj_item
Module Products.PageTemplates.Expressions, line 310, in restrictedTraverse
__traceback_info__: {'path': [u'absolute_url'], 'TraversalRequestNameStack': []}
Unauthorized: You are not allowed to access 'absolute_url' in this context

comment:5 Changed 13 years ago by jukka

  • Status changed from new to closed
  • Resolution set to fixed
  • Time remaining set to 0h

(In [1523]) Fixed #1248, but there is still work to be done with RSS. Currently topic-rss:s do not support limiting results by search terms, so you cannot for example have a RSS-feed for content/tags?tags=learning. search_rss.pt can do this, so I'll move some tricks from there to here.

Note: See TracTickets for help on using tickets.