Bug #37246
<link> tags in RSS feeds destroyed on cached pages
| Status: | Needs Feedback | Start date: | 2012-05-17 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Caching | |||
| Target version: | - | |||
| TYPO3 Version: | 4.5 | Complexity: | ||
| PHP Version: | 5.3 | |||
| Votes: | 0 |
Description
I created an extension plugin, that produce a RSS feed output. My extension has 2 plugins with the same output. One plugin is from type USER and the other from type USER_INT. If I use the plugin with cache, the RSS feed output is invalid, because the <link> tags are broken. The code changes from <link>http://www.typo3.org</link> to <link />http://www.typo3.org</link>. The link tag is closed in the first tag. The output was changed by the system caching mechanism. My plugin definitely produce the same output.
This is my TypoScript setup for the RSS feed page:
# define rss page type
rss = PAGE
rss.typeNum = 444
rss.config.disableAllHeaderCode = 1
rss.config.additionalHeaders = Content-type:text/xml
# configurate template
rss.1 = TEMPLATE
rss.1 {
# include xml template
template = FILE
template.file = fileadmin/design1/templates/template_rss.xml
# define work subpart
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get
}
# content configuartion
tt_content.stdWrap.innerWrap >
config.admPanel = 0
The template_rss.xml look linke this:
<!-- ###DOCUMENT_BODY### start --><?xml version="1.0" encoding="utf-8"?> <!-- ###CONTENT### start --> <!-- ###CONTENT### stop --> <!-- ###DOCUMENT_BODY### stop -->
History
Updated by Steffen Gebert about 1 year ago
- Status changed from New to Needs Feedback
- Target version deleted (
4.5.16)
I'm really not sure that this is caused by parts of the Caching Framework.
Could you share a simplified extension of yours, which enables to reproduce this effect?
Thanks
Steffen
Updated by Andreas Kiessling 10 months ago
@Tobias: could you please check what your config for xhtml_cleaning is? Just had the same effect, but setting it to none solved it.
rssfeed = PAGE
rssfeed{
config {
additionalHeaders = Content-type:text/xml;charset=UTF-8
disableAllHeaderCode = 1
xhtml_cleaning = none
disablePrefixComment = 1
}
...
Updated by Tobias Klepp 10 months ago
- File T3X_ams_xmltest-0_0_0-z-201207191604.t3x added
@Andreas: I not configured "xhtml_cleaning". I don it now and it works! Thanks a lot.
@Steffen: I programmed a very simple extension with a cached plugin (pi1) and a non-cached plugin (pi2). If you add this plugin on a page with my posted TypoScript configuration and call the page with the xml output (&type=444), you can see the result.
Tobias