diff options
author | Ed Merks | 2022-01-15 05:55:10 +0000 |
---|---|---|
committer | Ed Merks | 2022-01-15 06:54:49 +0000 |
commit | db7d8f3229c566b8252fb74870833064140dd35a (patch) | |
tree | 64944603482127fd126c5678215591ef91bd3076 | |
parent | fd8d3171a92ec6d5c68926e92f2ae706b7fab534 (diff) | |
download | rt.equinox.bundles-Y20220121-0600.tar.gz rt.equinox.bundles-Y20220121-0600.tar.xz rt.equinox.bundles-Y20220121-0600.zip |
Bug 575984 - Untrustworthy Certificate dialogY20220129-0600Y20220128-0600Y20220127-0600Y20220126-0600Y20220125-0600Y20220124-0600Y20220123-0600Y20220122-0600Y20220121-0600Y20220120-0600Y20220119-0600Y20220118-0600Y20220117-0600Y20220116-0600Y20220115-0600I20220131-0800I20220131-0700I20220129-1800I20220128-1800I20220127-1800I20220126-1800I20220126-0520I20220125-1800I20220125-0320I20220124-0510I20220123-1800I20220122-1800I20220121-1800I20220120-1800I20220120-0720I20220120-0220I20220119-1800I20220119-1440I20220119-1320I20220119-0540I20220118-1800I20220117-1800I20220116-1800I20220115-1800
Parsing of the name requires special handling for , and + and therefore
uses \ to escape those characters. The result of the parsing should
remove/interpret the \ escape to present the value in a more
human-readable way based on the original intended text value.
Change-Id: Ibfb887a610b131fd06eef83f2e7b1b4bcf3fdf31
Signed-off-by: Ed Merks <ed.merks@gmail.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.bundles/+/189670
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
3 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF index 9907cdedb..11308c603 100644 --- a/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.equinox.security.ui;singleton:=true -Bundle-Version: 1.3.100.qualifier +Bundle-Version: 1.3.200.qualifier Bundle-Vendor: %providerName Bundle-Localization: plugin Import-Package: javax.crypto.spec, diff --git a/bundles/org.eclipse.equinox.security.ui/pom.xml b/bundles/org.eclipse.equinox.security.ui/pom.xml index 975fd054d..4a99d3ff8 100644 --- a/bundles/org.eclipse.equinox.security.ui/pom.xml +++ b/bundles/org.eclipse.equinox.security.ui/pom.xml @@ -21,7 +21,7 @@ <groupId>org.eclipse.equinox</groupId> <artifactId>org.eclipse.equinox.security.ui</artifactId> - <version>1.3.100-SNAPSHOT</version> + <version>1.3.200-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project> diff --git a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/provisional/security/ui/X500PrincipalHelper.java b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/provisional/security/ui/X500PrincipalHelper.java index 6fd82dd25..53f217f5f 100644 --- a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/provisional/security/ui/X500PrincipalHelper.java +++ b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/provisional/security/ui/X500PrincipalHelper.java @@ -196,19 +196,22 @@ public class X500PrincipalHelper { while (startIndex < dn.length()) { int endIndex; + StringBuilder value = new StringBuilder(); for (endIndex = startIndex; endIndex < dn.length(); endIndex++) { c = dn.charAt(endIndex); if (c == ',' || c == '+') break; if (c == '\\') { endIndex++; // skip the escaped char + } else { + value.append(c); } } if (endIndex > dn.length()) throw new IllegalArgumentException("unterminated escape " + dn); //$NON-NLS-1$ - nameValues.add(dn.substring(startIndex, endIndex)); + nameValues.add(value.toString()); if (c != '+') { rdnNameArray.add(nameValues); |