Bamboo JavaScript error: _.omit is not a function occurs when editing a repository
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
When attempting to edit a non-linked Bitbucket Server (previously known as Stash) repository the repository autocomplete dropdown does not load any entries and the wheel will spin indefinitely. This may manifest on other pages with the same control.
Example on editChainRepository.action:
The following JavaScript error can be found in your browser's console:
batch.js?locale=en-AU&isAdmin=true&supportedApplication=true:27498
Uncaught TypeError: _.omit is not a function
Diagnosis
Environment
- The Cucumber Report Plugin add-on is installed.
- Bamboo Server 5.8.5 or older.
Cause
The problem is caused by the Cucumber Report Plugin add-on with Bamboo Server 5.8.5 or older. At the time of writing the latest available version of the add-on that is known to cause the problem is 1.3.3 on Bamboo Server 5.8.5.
Workaround
To work around the problem:
- Disable the Cucumber Report Plugin add-on in Bamboo or uninstall it.
- Convert your repository to a Linked Repository and edit it through the linked repository UI.
Resolution
Upgrade your Bamboo Server to 5.9.x in combination with version 1.3.3 of Cucumber Report Plugin.