Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-1318

The OSGi component exposed by P2 plugin using atlassian-app-cloud-migration-listener library is not found by the migration assistant plugin

    XMLWordPrintable

Details

    • 1
    • Severity 3 - Minor

    Description

      Issue Summary

      When P2 plugin expose OSGI component for migration path implementation, that is not found by migration assistant plugin.

      This only applies for apps who:

      • use `atlassian-app-cloud-migration-listener` library.
      • and there is match between the groupId suffix and artifactId prefix. This is currently resulting in incorrect bundleKey formation

      For example,
      <groupId>com.vendor</groupId>
      <artifactId>vendor-plugin-sample</artifactId>
      results in bundlekey as `com.vendor.plugin-sample` whereas expected bundlekey is `com.vendor.vendor-plugin-sample`

       

      Apps using `app-migration-osgi` and `app-migration-tracker` library are not impacted.

      Steps to Reproduce

      Expose an OSGI component from P2 plugin that uses `atlassian-app-cloud-migration-listener` library.

      Expected Results

      OSGI component exposed by P2 plugins should be visible to migration assistant plugin

      Actual Results

      OSGI component exposed by P2 plugin is not found by migration assistant plugin

      Workaround

      P2 plugins facing this issue are requested to override the following optional method of 
      `DiscoverableListener` interface
       

      String getServerAppKey() {
      
      } 

      Attachments

        Issue Links

          Activity

            People

              arosot Andre Rosot
              9047d5dbcbb5 Pooja Jangid
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: