Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-6969

VariableSubstitutionBean cannot be used in V2 plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.7 rc1, 2.7
    • 2.6.2
    • None
    • None

    Description

      Any plugin that requires variable substitution via the VariableSubstitutionBean has to be a V1 plugin because the VSB is not exposed to V2 plugins.

      This was discovered during: https://studio.plugins.atlassian.com/browse/BPBC-41

      Emails were exchanged regarding this as well:

      Mark Chai:
      -------------
      The VSB is a prototype scoped bean so it can't be made available in OSGI.

      I'm not 100% sure if it has to be a prototype (it does access the AdminConfigManager but doesn't seem to cache anything).

      If you have Bamboo building from source, you could try to switch the prototype flag off on the application context definition and plugin:available="true" and see if that works.

      Jonathan Doklovic (response):
      -----------------------------
      I just updated the applicationContextCommon.xml inside of bamboo-agent-core within the container that amps uses.
      Removed the prototype scope and added plugins:available="true".

      This has no effect. When I run my plugin, the VSB still does not get injected into my action. http://www.sadtrombone.com/

      Attachments

        Activity

          People

            kbrazulewicz Krystian Brazulewicz
            10564dc141a4 jonathan doklovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: