Change in source filter causes empty list to be returned #412
Labels
kind/bug
Something isn't working
status/pending-feedback
Awaiting clarification/input from stakeholders etc.
Description of the bug
It appears a change to the source filter which shouldn't have any effect causes events to be excluded from the resulting list. I suspect this has to do with the initial limited query to the database no longer includes the actual event.
Steps To Reproduce
https://platform.tt02.altinn.no/events/api/v1/events?after=41837b80-ad20-465f-adab-0e9a690a402b&source=https://dialogporten.no/api/v1/dialogs/%
, authenticate asorg=digdir
"source": "https://dialogporten.no/api/v1/dialogs/1e038d0f-7738-4a51-b9f8-b44b2fca94ee"
1
to the source filter, ie requesthttps://platform.tt02.altinn.no/events/api/v1/events?after=41837b80-ad20-465f-adab-0e9a690a402b&source=https://dialogporten.no/api/v1/dialogs/1%
Expected results: The same entry should be the first in the list returned
Actual results: Empty list
Additional Information
This might have to do with the fact that the implicit limit of 50(?) elements is used directly in the query along with any other predicates, such as source filter. This causes a different set of items to be returned, which may or may not include the events the user is authorized to see.
The text was updated successfully, but these errors were encountered: