You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: cleanup_namespaces removes also xs + xsi prefixes #333
The LXML cleanup_namespaces considers it unused and removes, resulting into metadata that fails schema validation:
xmllint --noout --schema /opt/mdtool/app/web/schemas/schema.xsd /var/www/html/metadata/tuakiri-dev-metadata-signed.xml
/var/www/html/metadata/tuakiri-dev-metadata-signed.xml:1095: element AttributeValue: Schemas validity error : Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
/var/www/html/metadata/tuakiri-dev-metadata-signed.xml:1096: element AttributeValue: Schemas validity error : Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
/var/www/html/metadata/tuakiri-dev-metadata-signed.xml:1099: element AttributeValue: Schemas validity error : Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
/var/www/html/metadata/tuakiri-dev-metadata-signed.xml:1100: element AttributeValue: Schemas validity error : Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
/var/www/html/metadata/tuakiri-dev-metadata-signed.xml fails to validate
And also fails with Shibboleth SP using MetadataProvider with validate="true":
2026-09-03 11:06:07 ERROR XMLTooling.ParserPool : fatal error on line 6018, column 53, message: prefix 'xs' can not be r
esolved to namespace URI
2026-09-03 11:06:07 ERROR OpenSAML.MetadataProvider.XML : error while loading resource (/var/cache/shibboleth/metadata.t
uakiri-test.xml): XML error(s) during parsing, check log for specifics
2026-09-03 11:06:07 CRIT OpenSAML.MetadataProvider.Chaining : failure initializing MetadataProvider: XML error(s) during
parsing, check log for specifics
This can be solved with lxml.etree.cleanup_namespaceskeep_ns_prefixes parameter.
Activity
fix: builtins/publish: keep xs+xsi NS in cleanup
fix: builtins/publish: keep xs+xsi NS in cleanup