Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing relation tuples where none match cause SQL error #439

Closed
aeneasr opened this issue Feb 9, 2021 · 0 comments
Closed

Listing relation tuples where none match cause SQL error #439

aeneasr opened this issue Feb 9, 2021 · 0 comments
Assignees
Labels
blocking Blocks milestones or other issues or pulls. bug Something is not working.

Comments

@aeneasr
Copy link
Member

aeneasr commented Feb 9, 2021

Describe the bug

Instead of receiving an empty list, I get: The requested resource could not be found.

Reproducing the bug

	testhelpers.NewKetoServer(t, reg.Config())

	identityID := x.NewUUID()

	projects, err := reg.AccessService().ListAccessibleProjects(ctx, identityID) // could be any non-existing relationtuple
	require.NoError(t, err) // fails with: The requested resource could not be found
	assert.Empty(t, projects)

After the first relation has been added, this no longer happens.

@aeneasr aeneasr added bug Something is not working. blocking Blocks milestones or other issues or pulls. labels Feb 9, 2021
@aeneasr aeneasr added this to the Next Gen Keto - next milestone milestone Feb 9, 2021
zepatrik added a commit that referenced this issue Feb 9, 2021
@zepatrik zepatrik closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking Blocks milestones or other issues or pulls. bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants