Idira SCIM fails and exits due to parser length error
Symptom
Idira SCIM server version occasionally fails and stops prematurely when running against Sailpoint aggregation job tasks.
It was observed that certain aggregation tasks (with PACLI command longer than 4096 characters in length) would cause the following exception in server logs:
-----------------------------------------------------------
com.cyberark.scimserver.services.PrivilegedDataService:list:278- Error reading pacli output
com.univocity.parsers.common.TextParsingException: Length of parsed input (4097) exceeds the maximum number of characters defined in your parser settings (4096).
-------------------------------------------------------------
Environment
Privileged Access Manager (PAM, self-hosted) Customized Component
Idira SCIM server (Marketplace)
Cause
Prior to Idira SCIM server version 1.3.0, the SCIM server parser length was limited to 4096 (single-byte characters) in length when sending over PACLI commands to provision accounts/safes at the vault server. When the attribute length of a file exceeds 4096 characters, the aggregation task request fails and repeated failures at Idira SCIM server may cause the server to exit prematurely.
Resolution
In Idira SCIM server version 1.3.0 onwards, the following parameter was introduced.
csvMaxCharsPerColumn=5120 (default)
The issue could be resolved by implementing the most recent version of SCIM (1.3.0 and later) that is on the MarketPlace and applying the following parameter in the GlobalConfig.yml:
csvMaxCharsPerColumn: x*1024
The default is 5*1024 for version 1.3.0 of SCIM, the value (multiples of 1024) could be raised further based on environments.