Skip to content

Fix file config for MetaDataStorageHandlerXML - #2682

Open
lscharmer wants to merge 3 commits into
simplesamlphp:simplesamlphp-2.4from
lscharmer:bug/2.4/metadata-xml-with-file
Open

lscharmer wants to merge 3 commits into
simplesamlphp:simplesamlphp-2.4from
lscharmer:bug/2.4/metadata-xml-with-file

Conversation

@lscharmer

Copy link
Copy Markdown

With commit ec3fb13 metadata.sources crashes with [['type' => 'xml', 'file' => '/foo/bar.xml']] (the code previously checked for $srcXml and $src).

In >= v2.5 it works correctly. I'm guessing this is due to some refactoring + cherry-picking issues.

I added the same line as it is implemented in master: https://github.com/simplesamlphp/simplesamlphp/blob/master/src/SimpleSAML/Metadata/MetaDataStorageHandlerXML.php#L49

I also added the missing namespace for the Exception case (also not applicable for >= 2.5).

lscharmer and others added 3 commits September 10, 2026 12:47
Add missing $srcXml variable & read given metadata file.
Add missing exception namespace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants