Details
-
Bug
-
Resolution: Done
-
Low
-
5.10.3, 5.13.0.1
-
Severity 2 - Major
-
Description
Summary
When trying to delete a repository of a type that is driven by a plugin, an IllegalStateException occurs with the following message if the plugin is disabled:
java.lang.IllegalStateException: Cannot load repository with key <pluginKey>. Plugins may have been disabled.
where <pluginKey> is the plugin key of the repository type in question, e.g. com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git:git for git repositories.
Steps to Reproduce
- Stop Bamboo
- Disable a plugin that drives a repository type that you're using in a plan
- Start Bamboo
- Navigate to a plan that uses a repository of a type whose plugin you disabled in step 2
- Try to delete the repository
Expected Results
The repository is deleted.
Actual Results
The below exception occurs:
java.lang.IllegalStateException: Cannot load repository with key <pluginKey>. Plugins may have been disabled.
where <pluginKey is the plugin key of the repository type in question, e.g. com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git:git for git repositories.
Workaround
Re-enable the previously disabled plugin, then delete the repository, then disable the plugin again.