Deprecate Confluence internal code cause integration tests to fail

XMLWordPrintable

      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)
      

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

              Created:
              Updated:
              Resolved: