Skip to content

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

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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