You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Lionel Schwarz (Jira)" <ji...@apache.org> on 2022/10/25 08:17:00 UTC
[jira] [Updated] (SYNCOPE-1686) relationship refering to object itself
[ https://issues.apache.org/jira/browse/SYNCOPE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lionel Schwarz updated SYNCOPE-1686:
------------------------------------
Affects Version/s: 3.0.0-M1
> relationship refering to object itself
> --------------------------------------
>
> Key: SYNCOPE-1686
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1686
> Project: Syncope
> Issue Type: Bug
> Affects Versions: 2.1.11, 3.0.0-M1
> Reporter: Lionel Schwarz
> Priority: Minor
>
> I have defined 2 anyobjecttypes "A" and "B" and a relationship "AB" that I want to use to define a relation between an object of type "A" and an object of type "B"
> I have created an object "a" of type "A" with REST (POST)
> I have then created an object "b" of type "B" with a relationship "AB" to object "a" with REST:
> {
> {{ "type": "B",}}
> {{ "name": "b",}}
> {{ "relationships" :[}}
> {{{} { "type": "AB", "otherEndType": "A", "otherEndKey": "<KEY_OF_a>", "otherEndName" : "a"{}}}}
> {{ ]}}
> {{}}}
> I successfully see relationship on "b" with REST, but I also see the relationship on "a" which refers to itself:
> {
> {{ "name": "a",}}
> {{ "relationships" :[}}
> {{{} { "type": "AB", "otherEndType": "A", "otherEndKey": "<KEY_OF_a>", "otherEndName" : "a"{}}}}
> {{ ]}}
> {{}}}
> I would have expected either the reversed relationship (if supported) or no relationships for "a"
>
> I got the same issue when creating data with the console
--
This message was sent by Atlassian Jira
(v8.20.10#820010)