Skip to content

Commit 79d4e8b

Browse files
committed
Treat length 1 authority chain the same as the URI with / appended
#1050
1 parent 3c3609b commit 79d4e8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ValidationDialogServiceUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ public TrustAuthorityInfo getTrustAuthorityInfo(Map<URI, Set<IInstallableUnit>>
448448
var authorityChain = AuthorityChecker.getAuthorityChain(location);
449449
if (authorityChain.size() > 3) {
450450
authorityChain.subList(2, authorityChain.size() - 1).clear();
451+
} else if (authorityChain.size() == 1) {
452+
authorityChain = AuthorityChecker.getAuthorityChain(URI.create(location + "/")); //$NON-NLS-1$
451453
}
452454
var ius = entry.getValue();
453455
var certificates = authorityCertificates.get(location);

0 commit comments

Comments
 (0)