Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26045

PageTemplateManager API change in 4.3 without deprecation

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3
    • 4.3
    • None

      PageTemplateManager.mergeVariables has changed without being marked as deprecated in confluence 4.2

      This breaks the binary compatibility for our Adhoc Canvas Plugin
      Please advice.

            [CONFSERVER-26045] PageTemplateManager API change in 4.3 without deprecation

            YOu mean have the old method return String, and the new method return BodyContent?
            [11:09am] Swoon: you can call PageTemplate.getBodyType
            [11:09am] Swoon: to see the type of the content that will be returned from mergeVariables

            Ulrich Kuhnhardt added a comment - YOu mean have the old method return String, and the new method return BodyContent? [11:09am] Swoon: you can call PageTemplate.getBodyType [11:09am] Swoon: to see the type of the content that will be returned from mergeVariables

            would it be possible to return BodyContent instead of String in confluence 4.3?

            Ulrich Kuhnhardt added a comment - would it be possible to return BodyContent instead of String in confluence 4.3?

            Joe Clark added a comment -

            Note that calling methods on PageTemplateManager will now return template content in Confluence Storage Format (a non-binary breaking change).

            Joe Clark added a comment - Note that calling methods on PageTemplateManager will now return template content in Confluence Storage Format (a non-binary breaking change).

            Joe Clark added a comment -

            This change was caused by the migration of page templates from wiki markup to confluence storage format. The breaking compatibility change has already been fixed and will be reverted with a proper deprecation notice in 4.3-rc1.

            Joe Clark added a comment - This change was caused by the migration of page templates from wiki markup to confluence storage format. The breaking compatibility change has already been fixed and will be reverted with a proper deprecation notice in 4.3-rc1.

            Ulrich Kuhnhardt added a comment - - edited

            update : in confluence 4.3 mergeVariables() returns editor format, where earlier versions just replace the variable placeholders with values.

            Ulrich Kuhnhardt added a comment - - edited update : in confluence 4.3 mergeVariables() returns editor format, where earlier versions just replace the variable placeholders with values.

            update : the API changed from 4.3-m12 to 4.3-beta1

            cheeky

            Ulrich Kuhnhardt added a comment - update : the API changed from 4.3-m12 to 4.3-beta1 cheeky

              jclark@atlassian.com Joe Clark
              f69cbac16f16 Ulrich Kuhnhardt
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: