Skip to content

Can't parse SIR federation aggregate #92

@binaryape

Description

@binaryape

While testing SmeeOrgs:

DataSirCompatibilityTest [test/data/data_sir_compatibility_test.exs]
  * test basic compatibility smoke test can download the metadata from sir and parse a list of basic Organization records (196.9ms) [L#9]

  1) test basic compatibility smoke test can download the metadata from sir and parse a list of basic Organization records (DataSirCompatibilityTest)
     test/data/data_sir_compatibility_test.exs:9
     ** (MatchError) no match of right hand side value:

         ["<md:EntitiesDescriptor xmlns:md=\"urn:oasis:names:tc:SAML:2.0:metadata\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ID=\"shib1metadata\" Name=\"https://www.rediris.es/sir/shib1metadata.xml\" validUntil=\"2026-04-13T12:57:23Z\" xsi:schemaLocation=\"urn:oasis:names:tc:SAML:2.0:metadata saml-schema-metadata-2.0.xsd urn:mace:shibboleth:metadata:1.0 shibboleth-metadata-1.0.xsd http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd\">",
          "md:"]

     code: |> SmeeOrgs.stream()
     stacktrace:
       (smee 0.6.0) lib/smee/xml_munger.ex:285: Smee.XmlMunger.remove_groups/1
       (smee 0.6.0) lib/smee/xml_munger.ex:182: Smee.XmlMunger.process_metadata_xml/2
       (smee 0.6.0) lib/smee/metadata.ex:573: Smee.Metadata.split_to_stream/1
       (smee 0.6.0) lib/smee/metadata.ex:349: Smee.Metadata.stream_entities/2
       (smee_orgs 0.1.0) lib/smee_orgs/extract.ex:46: SmeeOrgs.Extract.stream/2
       test/data/data_sir_compatibility_test.exs:14: (test)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions