Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1318

Export/Import of a plugin with policies does not work because of its ID

    XMLWordPrintable

Details

    • Hide
      1. Install a plugin
      2. Export the data
      3. Shutdown apiman
      4. Delte ES-Folder and use the downloaded file as new default configuration for apiman
      5. Start apiman again
      6. Try to use the policy provided by a plugin somewhere
      Show
      Install a plugin Export the data Shutdown apiman Delte ES-Folder and use the downloaded file as new default configuration for apiman Start apiman again Try to use the policy provided by a plugin somewhere

    Description

      If you export data when a plugin with a policy exists you can't use the policy after a reimport because the policy is depending on the ID (Please take a look on my screenshoots).

      The problem is related to:

      • StorageImportDispatcher.java
        (plugin.setID(null))
      • EsStorage.java
        (plugin.setId(generateGuid()))
      • PluginResourceImpl.java – getPolicyForm()
        --> storage.getPlugin(pluginId) is not possible anymore because the id changed

      If I don't set the ID to null and check if there is already an ID before generating one, all works as expected

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            fvolk_scheere2e Florian Volk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: