2643631 - Connector fails with PGP Encryption related errors even though PGP Encryption is set to false

SAP Knowledge Base Article - Public

2643631 - Connector fails with PGP Encryption related errors even though PGP Encryption is set to false

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)

  1. Disable PGP Encryption:
    1. System Admin > Configuration > System Configuration
    2. Open CONNECTORS configuration file in Edit mode
    3. Find "# PGP setup for decryption of input files"
    4. Set connector.pgp.enabled=false
    5. Save changes
  2. Attempt to import an unencrypted data file via a connector
  3. Connector fails with PGP Encryption related errors:
    1. com.plateausystems.connector.api.ConnectorException: com.plateausystems.connector.api.ConnectorException: java.io.IOException: unknown object in stream: 47
    2. at com.plateausystems.connector.importdata.impl.FileDataImport.fetchInputFiles(FileDataImport.java:180)
    3. Caused by: com.plateausystems.connector.api.ConnectorException: java.io.IOException: unknown object in stream: 47
    4. at com.plateausystems.connector.importdata.impl.FileDataImport.fetchInputFiles(FileDataImport.java:150)
    5. ... 38 more
    6. Caused by: java.io.IOException: unknown object in stream: 47
    7. at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
    8. 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:

  1. System Admin > Configuration > System Configuration
  2. Open CONNECTORS configuration file in Edit mode
  3. Find "# PGP setup for decryption of input files"
  4. Set connector.pgp.enabled=false
  5. Public & Private keys should be null
  6. Passphrase can be left as is
  7. connector.pgp.file.extension set to .pgp
  8. Example:
    1. connector.pgp.enabled=false
    2. connector.pgp.public.keyring=
    3. connector.pgp.secret.keyring=
    4. connector.pgp.passphrase=[some value]
    5. 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