Skip to content

MetaDataLoader raises SAMLError("No file specified.") #999

@robinelvin

Description

@robinelvin

I need to load metadata from a database and I'm trying to use the "loader" type with a function. When I try to do this I get SAMLError("No file specified."). Looking at the code this is coming from the MetaDataFile which is the superclass of MetaDataLoader because the filename kwarg is not being passed. It shouldn't need a filename because there is no file - it is coming from a function call. If I patch MetadataStore like this it fixes the issue:

        elif typ == "loader":
            key = args[1]
            _args["filename"] = "foo" # <- Added this to work around the issue
            _md = MetaDataLoader(self.attrc, args[1], **_args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions