SolidLabResearch / generic-data-viewer-react-admin

MIT License
0 stars 1 forks source link

Application suffers with sources index file needing authentication #139

Closed mvanbrab closed 4 months ago

mvanbrab commented 4 months ago

Observation:

On a query with sources from index file: first login with a user with insufficient permissions (in the test data below textile_user1), index file can't be read, resulting in no results (OK).

But when logging out and logging in with a new user with sufficient permissions (in the test data below textile_user6), the index file isn't read again, resulting in still no results (not OK this time).

Same story when first not logging in and executing the query, followed by logging in with a user with sufficient permissions.

Test data

These are the involved users:

Note: in the next table, X stands for a positive integer number. As many actors exist as needed per use case.

actor webId email password
construction_userX https://css11.onto-deside.ilabt.imec.be/construction_userX/profile/card#me
http://localhost:3011/construction_userX/card#me
construction_userX@example.com construction_userX
textile_userX https://css11.onto-deside.ilabt.imec.be/textile_userX/profile/card#me
http://localhost:3011/textile_userX/card#me
textile_userX@example.com textile_userX
electronics_userX https://css11.onto-deside.ilabt.imec.be/electronics_userX/profile/card#me
http://localhost:3011/electronics_userX/card#me
electronics_userX@example.com electronics_userX
EmilioTR commented 4 months ago

I solved the problem, but it was not due to caching. It was due to an authentication problem for the index source