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

Deprecate Confluence internal code cause integration tests to fail

    XMLWordPrintable

Details

    Description

      A test that used to work until Confluence version 5.9.x and below, now stopped working in Confluence 5.10.x because some Confluence internal template is using deprecated code, which is completely unrelated to our add-on, and apparently it fails when running Confluence on dev mode. Unfortunately integrated test are run in development mode

      This is the error:

      java.lang.RuntimeException: Error rendering template for decorator root
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:162)
      caused by: java.lang.RuntimeException: Error rendering template for decorator page
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:162)
      caused by: java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.pages.Page#getOriginalVersion - /decorators/includes/link-to-this-page.vm[line 7, column 114]
          at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:187)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              e9b97ed4466a Angel Ruiz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: