Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14298

Impossible to execute a fully custom Template/Template content

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.5
    • Fix Version/s: 9.4, 8.4.6
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      From Clément Aubin:

      I found out that the InternalTemplateManager does a cast from a TemplateContent to a DefaultTemplateContent which is a private class here : (https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/template/InternalTemplateManager.java#L739). Could it be possible to make this class public in order to extend it later ?

      Right now, we can't really extend the Template class if this cast throws an exception every time we call templateManager.execute(myCustomTemplate)

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: