close

Filter

loading table of contents...

Release Notes / Version 10.2107

Table Of Contents

View Inclusion Cycle Check

Projects frequently encounter stack overflow errors which are caused by cyclic view inclusions due to particular constellations of content and template structures, like self targeting teasers. Now, the CAE checks for such cycles and breaks them with a detailed ViewException .

Unfortunately, the check is not absolutely reliable, but may produce false positives. (A reliable check would require View objects to support equals. We did not want to go that far.) Known patterns for false positives are:

  • A View#render implementation invokes ViewUtils#render with the same bean + viewName, but just a different View object. (Consider invoking View#render directly, rather than ViewUtils#render ).

  • The ViewDispatcher#getView implementation is not determined by its arguments, but considers environmental data.

There are no known false positives in the standard Blueprint, therefore the check is active by default. If you encounter such cases in your project, you can switch off the check by setting view.cyclecheck=false in the CAE's application properties. With the check being disabled, the CAE behaves backward compatible.

(CMS-6450)

Search Results

Table Of Contents