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

Create relation creates a subject set instead of a single subject #365

Open
4 of 5 tasks
Erikvv opened this issue Dec 22, 2023 · 0 comments
Open
4 of 5 tasks

Create relation creates a subject set instead of a single subject #365

Erikvv opened this issue Dec 22, 2023 · 0 comments
Labels
bug Something is not working.

Comments

@Erikvv
Copy link

Erikvv commented Dec 22, 2023

Preflight checklist

Ory Network Project

https://gracious-torvalds-rvmo2ugoai.projects.oryapis.com

Describe the bug

Screenshot from 2023-12-22 12-56-41

When creating a relation through the GUI it creates a subject set instead of a single subject.

As a new user, I did not understand that this was the case and it was frustrating to observer that my relations weren't working.

Secondarily, I never specified a SubjectSet in the OPL definition. Shouldn't creating this relation produce an error?

Reproducing the bug

  1. Create relation in Ory Console
  2. Fetch relation via HTTP GET /relation-tuples
{
	"relation_tuples": [
		{
			"namespace": "User",
			"object": "erik",
			"relation": "uuid",
			"subject_set": {
				"namespace": "UserUUID",
				"object": "0aa1e827-0c94-4c79-a01d-68d4a93424da",
				"relation": ""
			}
		}
	],
	"next_page_token": ""
}
  1. Observe the subject is always a subject_set and never subject_id

Relevant log output

No response

Relevant configuration

No response

Version

/version endpoint returns a 404

On which operating system are you observing this issue?

Ory Network

In which environment are you deploying?

Ory Network

Additional Context

No response

@Erikvv Erikvv added the bug Something is not working. label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants