[java-opensaml] branch main updated: Forgot to set Attribute name/format.
Scott Cantor
cantor.2 at osu.edu
Tue Oct 8 20:55:30 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=333e514aa5859866686abfde7c4b56de8609f310
The following commit(s) were added to refs/heads/main by this push:
new 333e514aa Forgot to set Attribute name/format.
333e514aa is described below
commit 333e514aa5859866686abfde7c4b56de8609f310
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Oct 8 16:55:27 2024 -0400
Forgot to set Attribute name/format.
---
.../org/opensaml/saml/saml2/testing/SAML2ActionTestingSupport.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/opensaml-testing/src/main/java/org/opensaml/saml/saml2/testing/SAML2ActionTestingSupport.java b/opensaml-testing/src/main/java/org/opensaml/saml/saml2/testing/SAML2ActionTestingSupport.java
index aed458edd..f0da67102 100644
--- a/opensaml-testing/src/main/java/org/opensaml/saml/saml2/testing/SAML2ActionTestingSupport.java
+++ b/opensaml-testing/src/main/java/org/opensaml/saml/saml2/testing/SAML2ActionTestingSupport.java
@@ -266,12 +266,14 @@ public class SAML2ActionTestingSupport {
*
* @since 5.2.0
*/
- @Nonnull public static Attribute buildAttribute(@Nonnull final String name, @Nonnull final String format,
+ @Nonnull public static Attribute buildAttribute(@Nonnull final String name, @Nullable final String format,
@Nonnull final Collection<String> values) {
final SAMLObjectBuilder<Attribute> attributeBuilder = (SAMLObjectBuilder<Attribute>)
XMLObjectProviderRegistrySupport.getBuilderFactory().<Attribute>ensureBuilder(
Attribute.DEFAULT_ELEMENT_NAME);
final Attribute attr = attributeBuilder.buildObject();
+ attr.setName(name);
+ attr.setNameFormat(format);
final SAMLObjectBuilder<AttributeValue> valueBuilder = (SAMLObjectBuilder<AttributeValue>)
XMLObjectProviderRegistrySupport.getBuilderFactory().<AttributeValue>ensureBuilder(
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list