Project: bamboo
Issue BAM-6765: Inline Importer Causes Upgrade Tasks To Fail
When doing an import either via the setup wizard (or checking the checkbox to not restart bamboo from the admin section) the upgrades are run within the same thread as the action so therefore maintain the same session object (via the sessionInViewFilter thingy) for every upgrade task. This causes some nasty exceptions - the tasks assume they have a clean slate to work off. We need to make the upgrades run in a separate thread which does not have the overarching session available to it, and just make the action thread hang around waiting for the other thread to finish. I have attached an export which reproduces this problem.
Story points: 3