Symptom
Connector fails with PGP Encryption related errors even though PGP Encryption is set to false
Environment
SAP SuccessFactors Learning Management System (LMS)
Reproducing the Issue
Pre-requisite: PGP Encryption was enabled for Connectors at some point (previously needed, or copied over from LMS Refresh)
- Disable PGP Encryption:
- System Admin > Configuration > System Configuration
- Open CONNECTORS configuration file in Edit mode
- Find "# PGP setup for decryption of input files"
- Set connector.pgp.enabled=false
- Save changes
- Attempt to import an unencrypted data file via a connector
- Connector fails with PGP Encryption related errors:
- com.plateausystems.connector.api.ConnectorException: com.plateausystems.connector.api.ConnectorException: java.io.IOException: unknown object in stream: 47
- at com.plateausystems.connector.importdata.impl.FileDataImport.fetchInputFiles(FileDataImport.java:180)
- Caused by: com.plateausystems.connector.api.ConnectorException: java.io.IOException: unknown object in stream: 47
- at com.plateausystems.connector.importdata.impl.FileDataImport.fetchInputFiles(FileDataImport.java:150)
- ... 38 more
- Caused by: java.io.IOException: unknown object in stream: 47
- at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
- at com.plateausystems.connector.importdata.impl.PGPDecryptionStream.<init>(PGPDecryptionStream.java:59)
Cause
All PGP Setup configuration settings must be set to default
Resolution
Restore PGP Setup Configuration settings to default:
- System Admin > Configuration > System Configuration
- Open CONNECTORS configuration file in Edit mode
- Find "# PGP setup for decryption of input files"
- Set connector.pgp.enabled=false
- Public & Private keys should be null
- Passphrase can be left as is
- connector.pgp.file.extension set to .pgp
- Example:
- connector.pgp.enabled=false
- connector.pgp.public.keyring=
- connector.pgp.secret.keyring=
- connector.pgp.passphrase=[some value]
- connector.pgp.file.extension=.pgp
Keywords
SF SuccessFactors Learning LMS PGPEncryption PGP Encrypt Decrypt error exception PGPDecryptionStream Connector ConnectorException java.io.IOException , KBA , LOD-SF-LMS-CON , Connectors , Problem
Product
SAP SuccessFactors Learning all versions