[
https://issues.apache.org/jira/browse/SYNCOPE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Chicchiriccò updated SYNCOPE-1686:
--------------------------------------------
Affects Version/s: 3.0.9
(was: 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.9
> 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)