After upgrading from CA Identity Manager 12.5.x to 12.6 SP8 boolean TEWS calls no longer accept true/false as valid values

Document ID : KB000008414
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

After upgrading from CA Identity Manager 12.5.x to 12.6 SP8 boolean TEWS calls no longer accept true/false as valid values. 

 

Example of formerly valid TEWS call that fails in CP7: 

<test:IS_ENABLED>false</test:IS_ENABLED> 

 

Resulting error message: 

physicalAttr {EnabledStateAttributeName=%ENABLED_STATE%} 

DEBUG [ims.tasktrack.custom] (default task) multiValuedTable {|enable|=false} 

DEBUG [ims.tasktrack.custom] (default task) Service com.netegrity.ims.adapters.EnableUserHandler : EnableUserHandler toPhysical 

DEBUG [ims.default] (default task) Looking for value of attribute name:|enable| 

DEBUG [ims.default] (default task) Looking for value of attribute name:%ENABLED_STATE% 

DEBUG [ims.default] (default task) java.lang.NumberFormatException: java.lang.NumberFormatException: For input string: "false" 

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) [YOUR JAVA VERSION] 

at java.lang.Integer.parseInt(Integer.java:580) [YOUR JAVA VERSION]

at java.lang.Integer.parseInt(Integer.java:615) [YOUR JAVA VERSION]

at com.netegrity.ims.adapters.EnableUserHandler.toPhysical(EnableUserHandler.java:119) [ims.jar:] 

at com.netegrity.ims.businessprocess.LogicalAttributeServiceImpl.convertLogicalToPhysical(LogicalAttributeServiceImpl.java:354) [ims.jar:] 

Resolution:

TEWS can no longer accept string values of true and false in boolean fields. The correct format for the above TEWS call in 12.6.8 would be as follows: 

<test:IS_ENABLED>0</test:IS_ENABLED>