You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Francesco Chicchiriccò (Jira)" <ji...@apache.org> on 2024/12/02 13:10:00 UTC

[jira] [Resolved] (SYNCOPE-1686) relationship refering to object itself

     [ https://issues.apache.org/jira/browse/SYNCOPE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò resolved SYNCOPE-1686.
---------------------------------------------
    Resolution: Fixed

> relationship refering to object itself
> --------------------------------------
>
>                 Key: SYNCOPE-1686
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1686
>             Project: Syncope
>          Issue Type: Bug
>          Components: common, console, core
>    Affects Versions: 2.1.11, 3.0.9
>            Reporter: Lionel Schwarz
>            Assignee: Francesco Chicchiriccò
>            Priority: Minor
>             Fix For: 3.0.10, 4.0.0
>
>
> 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)