Bug #17746
closedinfinite loop possible for slide.collect (CONTENT)
0%
Description
There are (probably errorous and not intended) possible TYPOSCRIPT configurations for the CONTENT TS property slide when using slide.collect, where an infinite loop might be produced.
Example:
myCONTENT < styles.content.get
myCONTENT {
select.pidInList.data = TSFE:page|pid
slide = -1
slide.collect = -1
}
This should be avoided by some maximum for collected slides.
The attached patch sets this maximum hardcoded to 100.
(issue imported from #M6636)
Files
Updated by Oliver Hader about 17 years ago
I can confirm this. The value of pidInList stays the same for each level and thus queries again and again for the same on one page. IMO the pidInList should be completetly unset after the first run (before the first sliding operation).
Updated by Ralf Hettinger about 17 years ago
I would think that it was more useful to re-evaluate the data part of the cObj on recursion for each slide (that was indeed my intention when stumbling into this behaviour) than manipulating pidInList.
[edit]: Of course, this would not be a solution for a fixed pidInList value; which I think could be unset or even better set to page|uid depending on recursion's level. [edit2] Uhm. page|uid of course would have side effects f.e. on mount pointed pages... this is more complex than I thought at first glance.
Admittedly I have not dig deeper and don't know if this can be achieved easily.
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.1
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.