network icon indicating copy to clipboard operation
network copied to clipboard

Create relation creates a subject set instead of a single subject

Open Erikvv opened this issue 2 years ago • 0 comments

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 avatar Dec 22 '23 12:12 Erikvv