[java-opensaml] branch main updated: OSJ-459: ECP Request isPassive flag has the wrong default
Codeberg
noreply at shibboleth.net
Fri Nov 13 04:58:41 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-opensaml.
View the commit online:
https://codeberg.org/Shibboleth/java-opensaml/commit/84a354d52d083b966176443842b7db9cbeb283c3
The following commit(s) were added to refs/heads/main by this push:
new 84a354d52 OSJ-459: ECP Request isPassive flag has the wrong default
84a354d52 is described below
commit 84a354d52d083b966176443842b7db9cbeb283c3
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Thu Nov 12 23:56:17 2026 -0500
OSJ-459: ECP Request isPassive flag has the wrong default
---
.../src/main/java/org/opensaml/saml/saml2/ecp/Request.java | 2 ++
.../src/main/java/org/opensaml/saml/saml2/ecp/impl/RequestImpl.java | 2 +-
.../src/test/java/org/opensaml/saml/saml2/ecp/impl/RequestTest.java | 4 +++-
.../org/opensaml/saml/saml2/ecp/impl/RequestOptionalAttributes.xml | 2 +-
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/ecp/Request.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/ecp/Request.java
index caf7ec7e1..6c3806b90 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/ecp/Request.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/ecp/Request.java
@@ -98,6 +98,8 @@ public interface Request extends SAMLObject, MustUnderstandBearing, ActorBearing
/**
* Get the IsPassive attribute value.
*
+ * <p>Note that per the ECP profile the default when not explicitly set is: true.</p>
+ *
* @return the IsPassive attribute value
*/
@Nullable Boolean isPassive();
diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/ecp/impl/RequestImpl.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/ecp/impl/RequestImpl.java
index e133b07c1..77450d31c 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/ecp/impl/RequestImpl.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/ecp/impl/RequestImpl.java
@@ -104,7 +104,7 @@ public class RequestImpl extends AbstractXMLObject implements Request {
return isPassive.getValue();
}
- return Boolean.FALSE;
+ return Boolean.TRUE;
}
/** {@inheritDoc} */
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/ecp/impl/RequestTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/ecp/impl/RequestTest.java
index b6ac09818..a3b939e31 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/ecp/impl/RequestTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/ecp/impl/RequestTest.java
@@ -52,7 +52,7 @@ public class RequestTest extends XMLObjectProviderBaseTestCase {
expectedProviderName = "https://provider.example.org";
expectedSOAP11Actor = "https://soap11actor.example.org";
expectedSOAP11MustUnderstand = true;
- expectedPassive = true;
+ expectedPassive = false;
}
@@ -66,6 +66,8 @@ public class RequestTest extends XMLObjectProviderBaseTestCase {
Assert.assertEquals(request.isSOAP11MustUnderstand(), expectedSOAP11MustUnderstand, "SOAP mustUnderstand had unxpected value");
Assert.assertEquals(request.getSOAP11Actor(), expectedSOAP11Actor, "SOAP actor had unxpected value");
+
+ Assert.assertEquals(request.isPassive(), Boolean.TRUE, "IsPassive had unexpected value");
}
/** {@inheritDoc} */
diff --git a/opensaml-saml-impl/src/test/resources/org/opensaml/saml/saml2/ecp/impl/RequestOptionalAttributes.xml b/opensaml-saml-impl/src/test/resources/org/opensaml/saml/saml2/ecp/impl/RequestOptionalAttributes.xml
index 688d8c29d..186799415 100644
--- a/opensaml-saml-impl/src/test/resources/org/opensaml/saml/saml2/ecp/impl/RequestOptionalAttributes.xml
+++ b/opensaml-saml-impl/src/test/resources/org/opensaml/saml/saml2/ecp/impl/RequestOptionalAttributes.xml
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<ecp:Request xmlns:ecp="urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" soap11:mustUnderstand="1" soap11:actor="https://soap11actor.example.org" ProviderName="https://provider.example.org" IsPassive="true"/>
+<ecp:Request xmlns:ecp="urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" soap11:mustUnderstand="1" soap11:actor="https://soap11actor.example.org" ProviderName="https://provider.example.org" IsPassive="false"/>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list