Skip to content

Commit 9a77a7b

Browse files
tvdijenmonkeyiq
authored andcommitted
bugfix: log a warning instead on throwing an exception for invalid entityIDs (simplesamlphp#2449)
1 parent ad7fd28 commit 9a77a7b

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

docs/simplesamlphp-changelog.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55
This document lists the changes between versions of SimpleSAMLphp.
66
See the [upgrade notes](https://simplesamlphp.org/docs/stable/simplesamlphp-upgrade-notes.html) for specific information about upgrading.
77

8+
## Version 2.4.2
9+
10+
Released TBD
11+
12+
* Fixed a bug where metadata-endpoints with isDefault set would not yield the expected metadata (#2439)
13+
* Fixed a backwards incompatibility that would throw an exception on an invalid entityID.
14+
The exception was downgraded to a warning in the log (#2448)
15+
16+
`memcacheMonitor`
17+
18+
* Fixed an issue that prevented the latest version of this module from being installed on SSP 2.4.x
19+
20+
`negotiate`
21+
22+
* Fixed an issue that prevented the latest version of this module from being installed on SSP 2.4.x
23+
24+
## Version 2.4.1
25+
26+
Released 2025-05-14
27+
28+
* Reverted #2278 because of a regression in SLO when using SSP as a bridge (#2436)
29+
* Fixed a dependency on a dev-version of the saml2-library
30+
831
## Version 2.4.0
932

1033
Released TBD

modules/saml/src/Auth/Source/SP.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
NoPassiveException,
1818
NoSupportedIDPException,
1919
ProxyCountExceededException,
20+
ProtocolViolationException,
2021
};
2122
use SimpleSAML\SAML2\XML\md\ContactPerson;
2223
use SimpleSAML\SAML2\XML\saml\NameID;
@@ -126,7 +127,12 @@ public function __construct(array $info, array $config)
126127
);
127128

128129
$entityId = $this->metadata->getString('entityID');
129-
Assert::validURI($entityId);
130+
try {
131+
Assert::validURI($entityId);
132+
} catch (ProtocolViolationException $e) {
133+
Logger::warning($e->getMessage());
134+
}
135+
130136
Assert::maxLength(
131137
$entityId,
132138
C::SAML2INT_ENTITYID_MAX_LENGTH,

0 commit comments

Comments
 (0)