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

Create compat-lib to handle basic compat API for Webwork/Struts

    XMLWordPrintable

Details

    Description

      Atlassian Update - Oct 2022

      The Confluence DC development team has added a section for confluence-compat-lib usage with Struts2. The layer for Struts2 compatibility has been added in 1.5.0 of confluence-compat-lib.

      We would like to say thank you for everyone who provided feedback for the compatibility layer and would continue to watch the ticket/community post for the same.

      Regards,
      The Confluence DC Team

      Issue Summary

      Since Struts 2 upgrade is a breaking change, plugins would require a compatibility layer to keep a single version running across 7.x/8.x of Confluence.

      We can provide it to cover >90% of the cases. This would help in reducing friction in Vendor adoption of 8.0

      Few compatibility layers required inside confluence-compat-lib would need to cater for:

      • Constants
      • ActionContext/ServletActionContext
      • VelocityUtils bridge for static methods(if needed)

      This is reproducible on Data Center: (yes) 

      Steps to Reproduce

      1. Use Struts based Confluence 8.0

      Expected Results

      Single version of plugin using ServletActionContext can work with both Confluence 7.x and 8.x

      Actual Results

      Currently, two different versions are required.

      Workaround

      Currently there is no known workaround for this behavior. Plugins would need two versions for compatibility.

      Attachments

        Issue Links

          Activity

            People

              8d92d18aad77 Bhanu Darisi (Inactive)
              ggautam Ganesh Gautam
              Votes:
              8 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: