-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 9.2.11, 9.2.12, 9.2.13, 9.2.14, 9.2.15, 9.2.16, 9.2.17, 9.2.18, 9.2.19
-
Component/s: Bamboo Release, Security
-
None
-
1
-
Severity 3 - Minor
Issue Summary
This is reproducible on Data Center: (yes) / (no)
Steps to Reproduce
- Using a Bamboo 9.2.11+ version try to follow this article: AES encryption
- The step that fails is when you run the command:
java -cp "./*" com.atlassian.db.config.password.tools.CipherTool -c com.atlassian.db.config.password.ciphers.algorithm.AlgorithmCipher
- When prompted, provide the required arguments in a JSON object.
{"plainTextPassword":"yourPassword","algorithm":"AES/CBC/PKCS5PADDING","algorithmKey":"AES"}
Expected Results
The process should complete and generate all the files as described in the knowledge base.
Actual Results
The below exception is thrown in the command prompt
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2024-10-09 17:41:06,776 main DEBUG [db.config.password.DefaultCipherProvider] Initiate cipher provider class: com.atlassian.db.config.password.ciphers.algorithm.AlgorithmCipher Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at com.atlassian.db.config.password.DefaultCipherProvider.getInstance(DefaultCipherProvider.java:35) at com.atlassian.db.config.password.tools.CipherTool$NeverEmptyCipherProvider.getInstance(CipherTool.java:74) at com.atlassian.db.config.password.tools.CipherTool.getOutputData(CipherTool.java:54) at com.atlassian.db.config.password.tools.CipherTool.main(CipherTool.java:36) Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) ... 6 more
Workaround
To resolve the issue, download a previous version of Bamboo, such as version 9.2.10. Then, add the bcprov-jdk15on.jar file to the <Bamboo-installation-directory>/tools/atlassian-password folder.
I am also attaching the JAR file to this ticket.
- is caused by
-
BDEV-18257 Loading...
- mentioned in
-
Page Loading...