Bamboo JavaScript error: _.omit is not a function occurs when editing a repository
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
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
診断
環境
- The Cucumber Report Plugin add-on is installed.
- Bamboo Server 5.8.5 or older.
原因
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.
回避策
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.
ソリューション
Upgrade your Bamboo Server to 5.9.x in combination with version 1.3.3 of Cucumber Report Plugin.