Skip to content

Commit 82a6a1f

Browse files
committed
Merge remote-tracking branch 'apache/4.18' into main
2 parents 4116323 + c35d7ac commit 82a6a1f

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ public class CreateNetworkCmd extends BaseCmd implements UserCmd {
111111
+ " - Account. Account means that only the account owner can use the network, domain - all accounts in the domain can use the network")
112112
private String aclType;
113113

114-
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "account that will own the network")
114+
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "Account that will own the network. Account should be under the selected domain")
115115
private String accountName;
116116

117117
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, entityType = ProjectResponse.class, description = "an optional project for the network")
118118
private Long projectId;
119119

120-
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "domain ID of the account owning a network")
120+
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "domain ID of the account owning a network. " +
121+
"If no account is provided then network will be assigned to the caller account and domain")
121122
private Long domainId;
122123

123124
@Parameter(name = ApiConstants.SUBDOMAIN_ACCESS,

plugins/user-authenticators/saml2/src/main/java/org/apache/cloudstack/api/command/SAML2LoginAPIAuthenticatorCmd.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@
5555
import org.opensaml.saml2.core.Response;
5656
import org.opensaml.saml2.core.StatusCode;
5757
import org.opensaml.saml2.encryption.Decrypter;
58+
import org.opensaml.saml2.encryption.EncryptedElementTypeEncryptedKeyResolver;
5859
import org.opensaml.xml.ConfigurationException;
60+
import org.opensaml.xml.encryption.ChainingEncryptedKeyResolver;
5961
import org.opensaml.xml.encryption.DecryptionException;
60-
import org.opensaml.xml.encryption.EncryptedKeyResolver;
6162
import org.opensaml.xml.encryption.InlineEncryptedKeyResolver;
6263
import org.opensaml.xml.io.UnmarshallingException;
6364
import org.opensaml.xml.security.SecurityHelper;
@@ -253,7 +254,9 @@ public String authenticate(final String command, final Map<String, Object[]> par
253254
Credential credential = SecurityHelper.getSimpleCredential(idpMetadata.getEncryptionCertificate().getPublicKey(),
254255
spMetadata.getKeyPair().getPrivate());
255256
StaticKeyInfoCredentialResolver keyInfoResolver = new StaticKeyInfoCredentialResolver(credential);
256-
EncryptedKeyResolver keyResolver = new InlineEncryptedKeyResolver();
257+
ChainingEncryptedKeyResolver keyResolver = new ChainingEncryptedKeyResolver();
258+
keyResolver.getResolverChain().add(new InlineEncryptedKeyResolver());
259+
keyResolver.getResolverChain().add(new EncryptedElementTypeEncryptedKeyResolver());
257260
Decrypter decrypter = new Decrypter(null, keyInfoResolver, keyResolver);
258261
decrypter.setRootInNewDocument(true);
259262
List<EncryptedAssertion> encryptedAssertions = processedSAMLResponse.getEncryptedAssertions();

server/src/main/java/com/cloud/network/NetworkServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ public Network createGuestNetwork(CreateNetworkCmd cmd) throws InsufficientCapac
14021402
if ((cmd.getAccountName() != null && domainId != null) || cmd.getProjectId() != null) {
14031403
owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), domainId, cmd.getProjectId());
14041404
} else {
1405+
s_logger.info(String.format("Assigning the network to caller:%s because either projectId or accountname and domainId are not provided", caller.getAccountName()));
14051406
owner = caller;
14061407
}
14071408

ui/src/components/view/ListView.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@
167167
&nbsp;
168168
<a-tag>source-nat</a-tag>
169169
</span>
170+
<span v-if="record.isstaticnat">
171+
&nbsp;
172+
<a-tag>static-nat</a-tag>
173+
</span>
170174
</template>
171175
<template #ip6address="{ text, record }" href="javascript:;">
172176
<span>{{ ipV6Address(text, record) }}</span>

0 commit comments

Comments
 (0)