Skip to content

When filtering by entity type, I get a response that includes all entities #243

@alejandro-perez

Description

@alejandro-perez

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

  1. 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
  1. 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"
  1. Get a full list of 5k entities
  2. 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

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