-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
When filtering by entity type, when I try to get on entity's JSON metadata, I get a response that includes all entities instead.
However, search works fine, and returns the matching entities after filter has been applied.
Code Version
2.0.0 (docker image)
Expected Behavior
Only the entity matching the SHA1 hash is returned.
Current Behavior
All entities are returned (~5k)
Possible Solution
Steps to Reproduce
- Use the following config
- when update:
- load:
- http://metadata.ukfederation.org.uk/ukfederation-metadata.xml
- break
- when request:
- select:
- pipe:
- when accept application/json:
- select:
- '!//md:EntityDescriptor[md:IDPSSODescriptor]'
- discojson
- emit application/json:
- break
- Try to get an entity's JSON metadata (as expected by thiss-js)
curl "http://localhost:8080/%7Bentities/%7Bsha1%7D573116c096bd85296da6c0fd921b9f36dc4c3805.json" -H "Accept: application/json"
- Get a full list of 5k entities
- By disabling the select filter in step 1, the results frm step 2 are just the expected ones:4
[{"title": "UM - University of Murcia", "descr": "The Identity Provider of University of Murcia", "title_langs": {"es": "UM - Universidad de Murcia", "en": "UM - University of Murcia"}, "descr_langs": {"es": "El proveedor de identidad de la Universidad de Murcia", "en": "The Identity Provider of University of Murcia"}, "auth": "saml", "entity_id": "https://www.rediris.es/sir/umidp", "entityID": "https://www.rediris.es/sir/umidp", "type": "idp", "hidden": "false", "scope": "um.es", "domain": "um.es", "name_tag": "UM", "entity_icon_url": {"url": "https://img.sir2.rediris.es/200px-201a27c316f210f42657d783f2ae8fa0.png", "width": "200", "height": "53"}, "keywords": "um,murcia"}]
Metadata
Metadata
Assignees
Labels
No labels