pyFF
pyFF copied to clipboard
Wrong entityId selected
My pipeline loads two metadata feeds. Both have the entityId https://shibboleth.turnitin.com/shibboleth. By the order of feeds in load statement I can have this entity taken from appropriate metadata feed in published file (the last feed from load wins)
I want to exclude this entity from one specific feed
I was hoping that this should work well, i.e. the entityId https://shibboleth.turnitin.com/shibboleth should come from INCOMMON feed
- load:
- http://md.incommon.org/InCommon/InCommon-metadata-export.xml as INCOMMON
- https://metadata.eduid.hu/2020/href-edugain.xml as EDUIDHU
- select:
- INCOMMON
- EDUIDHU!//md:EntityDescriptor[not(@entityID='https://shibboleth.turnitin.com/shibboleth')]
- publish: /tmp/m.xml
but in the published XML file I'm getting this entity from EDUIDHU feed:
<md:EntityDescriptor entityID="https://shibboleth.turnitin.com/shibboleth"> md:Extensions <mdrpi:RegistrationInfo registrationAuthority="http://eduid.hu" registrationInstant="2023-11-15T13:25:09Z"> <mdrpi:RegistrationPolicy xml:lang="en">https://metadata.eduid.hu/eduid.hu-mrps-v2.0.pdf</mdrpi:RegistrationPolicy> </mdrpi:RegistrationInfo> .....
Code Version
v. 2.1.1 and 2.0.0 and master
Expected Behavior
The entityId https://shibboleth.turnitin.com/shibboleth should be taken from INCOMMON feed
Current Behavior
The entityId from EDUID-HU appears in the published XML
Steps to Reproduce
Run pyff against my example pipeline
- load:
- http://md.incommon.org/InCommon/InCommon-metadata-export.xml as INCOMMON
- https://metadata.eduid.hu/2020/href-edugain.xml as EDUIDHU
- select:
- INCOMMON
- EDUIDHU!//md:EntityDescriptor[not(@entityID='https://shibboleth.turnitin.com/shibboleth')]
- publish: /tmp/m.xml