ARA action DM set properties work wrongly with "protected" dynamic properties

Document ID : KB000094872
Last Modified Date : 05/07/2018
Show Technical Document Details
Issue:

We have customer use the action PCK.AUTOMIC_DM.PUB.ACTION.PROPERTY_SET and set the "password" properties for a deployment target, the new password got encrypted twice

20180413/155021.219 - U02001096 Job '2054362' uses client-wide resource '2:PCK.AUTOMIC_BOND.PUB.STORE.COMMUNICATION/DMTOOL.JAR' - 'C:\UC4\v12\Resources\0002\dm-tool.jar'.
c:\>C:\UC4\v12\bin\UCXJWX6M.EXE JNR=0002054362 MNR=0002 PNR=2368 IPA=172.16.36.74 TYP=S TXT=" Job started" 
 Program 'UC4 Job Messenger' version '12.0.0+build.3427' started
 UCMDJP: *********************************************************************
 UCMDJP: ** JOB 0002054362 (ProcID:0000016612) START AT 13.04.2018/15:50:21 **
 UCMDJP: ** UTC TIME 13.04.2018/08:50:21 **
 UCMDJP: *********************************************************************
 Connected with agent 'VVNSUPWIN01'
 Program 'UC4 Job Messenger' version '12.0.0+build.3427' terminated normally
c:\>cd /d "C:\UC4\v12\bin\"
C:\UC4\v12\bin>java jar C:\UC4\v12\Resources\0002\dm-tool.jar rm SetProperty -u "http://vvnsupwin06/rm7" -un "AE12/2/ARA/ARA" -p "1068C3D56F3E53396E53B510007795D356F4A36A271C351AE6C040FFA5E16EDA9B1AE0534E0B463E802A44F5E16797C941DB69B16F5DC6B01B8BB0D3D7A21A91D6B063F994B5EFD0803EC3228D8B63536A94F5C3E6A10784FA881760CCE375D617F9E80FDEC05799424F6EFE2EE13D473E66AD25075A66ED3337DB394873151BCB" -t "DeploymentTarget" -n "VVNSUPWIN01_tomcat" -prp "password" -v "-10CF03339145E42DAF" 
 DMTool: DMTool
 DMTool: (c) Automic Software GmbH
 DMTool: Version: 1.1.0
 DMTool: Date: 2017-09-14 02:07
 DMTool: 
 DMTool: Executing SetProperty started
 DMTool: Started at 2018-04-13 15:50:23
 DMTool: =================================================
 DMTool: PARAM: type = DeploymentTarget
 DMTool: PARAM: name = VVNSUPWIN01_tomcat
 DMTool: PARAM: username = AE12/2/ARA/ARA
 DMTool: PARAM: loglevel = 
 DMTool: PARAM: url = http://vvnsupwin06/rm7
 DMTool: PARAM: value = --10CF03339145E42DAF
 DMTool: PARAM: property = password
 DMTool: INFO: Setting Property 'password = --10CF03339145E42DAF' [ObjectID = 14629] ...
 DMTool: INFO: Property 'password = --10CF03339145E42DAF' [ObjectID = 14629] is set successfully.
 DMTool: =================================================
 DMTool: Executing rm SetProperty finished
 DMTool: Ended at 2018-04-13 15:50:26
 DMTool: Elapsed Time: 0 min, 3 sec
 DMTool: Return Code: 0
C:\UC4\v12\bin>C:\UC4\v12\bin\UCXJWX6M.EXE JNR=0002054362 MNR=0002 PNR=2368 IPA=172.16.36.74 TYP=E RET=00000000 TXT=" Job ended" 
 Program 'UC4 Job Messenger' version '12.0.0+build.3427' started
 UCMDJP: *********************************************************************
 UCMDJP: ** JOB 0002054362 (ProcID:0000016612) ENDED AT 13.04.2018/15:50:26 **
 UCMDJP: ** UTC TIME 13.04.2018/08:50:26 **
 UCMDJP: ** --------------------------------------------------------------- **
 UCMDJP: ** USED: 0.000 CPU **
 UCMDJP: *********************************************************************
 Connected with agent 'VVNSUPWIN01'
 Program 'UC4 Job Messenger' version '12.0.0+build.3427' terminated normally

When we check the new set password

2018-04-13 16:50:28 - U00020206 Variable '&Newpassword#' was stored with value '--108AA6E9B62838281B0A53D9F8257992B2C494B7FB54C61F70'.

 
Environment:
Package.Bond 1.1.0
Cause:
The action encrypt the password twice
Resolution:
Before set property, decrypt value if it is encrypted beforehand, 
Note: if property is not protected, the password shows as plain text.
Fixes versions:
  • Package.Bond 1.1.1,
  • Package.Bond 1.2.0
Download links: https://marketplace.automic.com/details/automic-release-automation-bond-action-pack