The issue that arises when running the import

SYSTEM IMPORT: Import System Export Encryption Issue

AuthorFullName__c
Scott Mosher
articleNumber
000005396
ft:sourceType
Salesforce
FirstPublishedDate
2022-08-31T16:57:45Z
lastModifiedDate
2024-12-11
VersionNumber
7


If we take a System Export of an encrypted environment, there is a real possibility we will run into issues on the import.  This artifactory.key is used to encrypt passwords within the artifactory.config.xml that is included within the export.  When we run one of these exports, we see the following error in the logs.
 

2022-08-24T22:56:39.247Z [jfrt ] [ERROR] [1527aaa13675d151] [c.CentralConfigServiceImpl:961] [http-nio-8081-exec-2] - Failed to reload configuration: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
2022-08-24T22:56:39.247Z [jfrt ] [ERROR] [1527aaa13675d151] [o.j.c.ExecutionUtils:190      ] [http-nio-8081-exec-2] - Last retry failed: Failed to reload configuration: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.. Not trying again
2022-08-24T22:56:39.249Z [jfrt ] [ERROR] [1527aaa13675d151] [ifactoryApplicationContext:728] [http-nio-8081-exec-2] - Failed system import: Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: Failed to reload configuration: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.. Not trying again]


This will cause the import to fail.