Plugin parsing breaks when nested more than 7 times
- Status
- Closed
- Subject
- Plugin parsing breaks when nested more than 7 times
- Version
- 12.x
14.x
17.x - Category
- Usability
- Feature
- Wiki Plugin (extends basic syntax)
Wiki Syntax (text area, parser, external wiki, etc) - Resolution status
- Partially solved
- Submitted by
- luci
- Volunteered to solve
- Jonny Bradley
- Lastmod by
- drsassafras, luci
- Rating
- Related-to
- Description
When nested more times, it stops working and breaks the whole page parsing.
This works:Copy to clipboard{DIV(class="level1")} {DIV(class="level2")} {DIV(class="level3")} {DIV(class="level4")} {DIV(class="level5")} {DIV(class="level6")} {DIV(class="level7")} Foo Bar {DIV} {DIV} {DIV} {DIV} {DIV} {DIV} {DIV}
This breaks:Copy to clipboard{DIV(class="level1")} {DIV(class="level2")} {DIV(class="level3")} {DIV(class="level4")} {DIV(class="level5")} {DIV(class="level6")} {DIV(class="level7")} {DIV(class="level8")} Foo Bar {DIV} {DIV} {DIV} {DIV} {DIV} {DIV} {DIV} {DIV}
See the SHOW instance.Expected behaviour:
Parsing nested plugins should work flawlessly no matter how many levels are nested or be limited to e.g. 20 levels (ideally should be configurable) but should not break up to that max level; only if above the limit, it could show the unparsed syntax instead of breaking whole content rendering.- Solution
A preference was created to allow for more plugin parsing passes. Called: Maximum plugin parsing passes.
A ideal fix entails a re-write of plugin parsing in Tiki, so this preference will allow website owners who have complex plugin needs to use them until such a task can be undertaken.
fixed in r62772
- Workaround
- Using HTML plugin and normal HTML code (which is annoying when you need to do lot of changes - lot of approvals)
- Importance
- 10 high
- Priority
- 50
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 5697
- Created
- Wednesday 26 August, 2015 05:39:11 UTC
by luci - LastModif
- Monday 29 May, 2017 20:18:28 UTC