Blame SOURCES/pki-core-tps-externalReg-regression.patch

92a605
From 47fccfaa32bf327c56c5789f373e4d18c714556f Mon Sep 17 00:00:00 2001
92a605
From: Jack Magne <jmagne@redhat.com>
92a605
Date: Fri, 10 Nov 2017 15:55:36 -0800
92a605
Subject: [PATCH] ReFix for  #2824 TPS new configuration to allow the protocol
92a605
 of the to determine applet loaded.
92a605
92a605
The problem discovered was that in only the external registration case, there was a problem obtaining the protocol
92a605
information for the token being enrolled. This simple fix makes sure the protocol info is obtained correctly for external
92a605
reg and non external reg enrollment cases.
92a605
92a605
Change-Id: Iccd40adbdafd5e94e04cbb8c391bd2706e483a1f
92a605
(cherry picked from commit e48374cd8a744fad5a03f64e8685ec3b3c465553)
92a605
(cherry picked from commit 3718b369598c3ecfdb6733c25b08e4b51042423f)
92a605
---
92a605
 .../src/org/dogtagpki/server/tps/processor/TPSProcessor.java   | 10 ++++++----
92a605
 1 file changed, 6 insertions(+), 4 deletions(-)
92a605
92a605
diff --git a/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java b/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java
92a605
index 4ec277e..03d6532 100644
92a605
--- a/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java
92a605
+++ b/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java
92a605
@@ -33,8 +33,6 @@ import java.util.List;
92a605
 import java.util.Map;
92a605
 import java.util.Set;
92a605
 
92a605
-import netscape.security.x509.RevocationReason;
92a605
-
92a605
 import org.dogtagpki.server.tps.TPSSession;
92a605
 import org.dogtagpki.server.tps.TPSSubsystem;
92a605
 import org.dogtagpki.server.tps.authentication.AuthUIParameter;
92a605
@@ -102,6 +100,8 @@ import com.netscape.cms.servlet.tks.SecureChannelProtocol;
92a605
 import com.netscape.cmsutil.crypto.CryptoUtil;
92a605
 import com.netscape.symkey.SessionKey;
92a605
 
92a605
+import netscape.security.x509.RevocationReason;
92a605
+
92a605
 public class TPSProcessor {
92a605
 
92a605
     public static final int RESULT_NO_ERROR = 0;
92a605
@@ -556,8 +556,10 @@ public class TPSProcessor {
92a605
             CMS.debug("TPSProcessor.setupSecureChannel: obtained randomData");
92a605
         }
92a605
 
92a605
-        // We already do this when checking for applet upgrade earlier.
92a605
-        //acquireChannelPlatformAndProtocolInfo();
92a605
+        // Do this on behalf of external reg, which needs it
92a605
+        // If already called, the routine will return anyway.
92a605
+
92a605
+        acquireChannelPlatformAndProtocolInfo();
92a605
 
92a605
         TPSBuffer initUpdateResp = initializeUpdate(keyVersion, keyIndex, randomData);
92a605
 
92a605
-- 
92a605
1.8.3.1
92a605