Escalated to Bugzilla from IssueTracker
71ToTxt does not have the logic to handle BigInteger array (i.e. BigInteger[]). Added code to the trunk to do this. [nkwan@water pkimigrate]$ svn diff Index: 71ToTxt/src/Main.java =================================================================== --- 71ToTxt/src/Main.java (revision 14601) +++ 71ToTxt/src/Main.java (working copy) @@ -30,6 +30,7 @@ // import java.io.*; +import java.math.*; import java.util.*; import sun.misc.*; import org.mozilla.jss.*; // CMS 4.5 and later @@ -389,6 +390,11 @@ for (int i = 0; i < in.length; i++) { System.out.println(" " + key + ":Integer[" + in.length + "," + i + "]="+ in[i]); } + } else if (obj instanceof BigInteger[]) { + BigInteger in[] = (BigInteger[])obj; + for (int i = 0; i < in.length; i++) { + System.out.println(" " + key + ":java.math.BigInteger[" + in.length + "," + i + "]="+ in[i]); + } } else if (obj instanceof netscape.security.x509.CertificateAlgorithmId) { netscape.security.x509.CertificateAlgorithmId o = (netscape.security.x509.CertificateAlgorithmId)obj; Index: 71ToTxt/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: 71ToTxt/classes/CMS71LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo71/src/Main.java =================================================================== --- TxtTo71/src/Main.java (revision 14601) +++ TxtTo71/src/Main.java (working copy) @@ -472,6 +472,15 @@ table.put(name, objs); } objs[index] = new Integer(value); + } else if (type.startsWith("java.math.BigInteger[")) { + int size = Integer.parseInt(type.substring(type.indexOf('[')+ 1, type.indexOf(','))); + int index = Integer.parseInt(type.substring(type.indexOf(',')+1, type.indexOf(']'))); + java.math.BigInteger objs[] = (java.math.BigInteger[])table.get(name); + if (objs == null) { + objs = new java.math.BigInteger[size]; + table.put(name, objs); + } + objs[index] = new java.math.BigInteger(value); } else if (type.startsWith("byte[")) { // byte array BASE64Decoder decoder = new BASE64Decoder(); Index: TxtTo71/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo71/classes/CMS71LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo71/classes/DummyAuthManager.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: 72ToTxt/src/Main.java =================================================================== --- 72ToTxt/src/Main.java (revision 14601) +++ 72ToTxt/src/Main.java (working copy) @@ -30,6 +30,7 @@ // import java.io.*; +import java.math.*; import java.util.*; import sun.misc.*; import org.mozilla.jss.*; // CMS 4.5 and later @@ -391,6 +392,11 @@ for (int i = 0; i < in.length; i++) { System.out.println(" " + key + ":Integer[" + in.length + "," + i + "]="+ in[i]); } + } else if (obj instanceof BigInteger[]) { + BigInteger in[] = (BigInteger[])obj; + for (int i = 0; i < in.length; i++) { + System.out.println(" " + key + ":java.math.BigInteger[" + in.length + "," + i + "]="+ in[i]); + } } else if (obj instanceof netscape.security.x509.CertificateAlgorithmId) { netscape.security.x509.CertificateAlgorithmId o = (netscape.security.x509.CertificateAlgorithmId)obj; Index: 72ToTxt/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: 72ToTxt/classes/CMS72LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo72/src/Main.java =================================================================== --- TxtTo72/src/Main.java (revision 14601) +++ TxtTo72/src/Main.java (working copy) @@ -476,6 +476,15 @@ table.put(name, objs); } objs[index] = new Integer(value); + } else if (type.startsWith("java.math.BigInteger[")) { + int size = Integer.parseInt(type.substring(type.indexOf('[')+ 1, type.indexOf(','))); + int index = Integer.parseInt(type.substring(type.indexOf(',')+1, type.indexOf(']'))); + java.math.BigInteger objs[] = (java.math.BigInteger[])table.get(name); + if (objs == null) { + objs = new java.math.BigInteger[size]; + table.put(name, objs); + } + objs[index] = new java.math.BigInteger(value); } else if (type.startsWith("byte[")) { // byte array BASE64Decoder decoder = new BASE64Decoder(); Index: TxtTo72/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo72/classes/CMS72LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo72/classes/DummyAuthManager.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: 73ToTxt/src/Main.java =================================================================== --- 73ToTxt/src/Main.java (revision 14601) +++ 73ToTxt/src/Main.java (working copy) @@ -29,6 +29,7 @@ // diff 70ToTxt/src/Main.java 71ToTxt/src/Main.java // +import java.math.*; import java.io.*; import java.util.*; import sun.misc.*; @@ -391,6 +392,11 @@ for (int i = 0; i < in.length; i++) { System.out.println(" " + key + ":Integer[" + in.length + "," + i + "]="+ in[i]); } + } else if (obj instanceof BigInteger[]) { + BigInteger in[] = (BigInteger[])obj; + for (int i = 0; i < in.length; i++) { + System.out.println(" " + key + ":java.math.BigInteger[" + in.length + "," + i + "]="+ in[i]); + } } else if (obj instanceof netscape.security.x509.CertificateAlgorithmId) { netscape.security.x509.CertificateAlgorithmId o = (netscape.security.x509.CertificateAlgorithmId)obj; Index: 73ToTxt/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: 73ToTxt/classes/CMS73LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo73/src/Main.java =================================================================== --- TxtTo73/src/Main.java (revision 14601) +++ TxtTo73/src/Main.java (working copy) @@ -476,6 +476,15 @@ table.put(name, objs); } objs[index] = new Integer(value); + } else if (type.startsWith("java.math.BigInteger[")) { + int size = Integer.parseInt(type.substring(type.indexOf('[')+ 1, type.indexOf(','))); + int index = Integer.parseInt(type.substring(type.indexOf(',')+1, type.indexOf(']'))); + java.math.BigInteger objs[] = (java.math.BigInteger[])table.get(name); + if (objs == null) { + objs = new java.math.BigInteger[size]; + table.put(name, objs); + } + objs[index] = new java.math.BigInteger(value); } else if (type.startsWith("byte[")) { // byte array BASE64Decoder decoder = new BASE64Decoder(); Index: TxtTo73/classes/Main.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo73/classes/CMS73LdifParser.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: TxtTo73/classes/DummyAuthManager.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream [nkwan@water pkimigrate]$
Ben, can you try my new migration binaries out? They are in /home/nkwan/support/bugzilla/238779/usr/share/rhpki/migrate
User nkwan's account has been closed
Bug already MODIFIED. setting target CS8.0 and marking screened+
Verified. This issue is not seen during Ldap database migration from CS 7.1 to 8.0 following the instructions in https://bugzilla.redhat.com/attachment.cgi?id=351188, hence putting the bug to verified status.