Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E6D0D200D2D for ; Fri, 27 Oct 2017 10:11:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E56EE160BDC; Fri, 27 Oct 2017 08:11:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 388601609E9 for ; Fri, 27 Oct 2017 10:11:50 +0200 (CEST) Received: (qmail 31367 invoked by uid 500); 27 Oct 2017 08:11:49 -0000 Mailing-List: contact dev-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list dev@syncope.apache.org Received: (qmail 31342 invoked by uid 99); 27 Oct 2017 08:11:49 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2017 08:11:49 +0000 Received: from [192.168.0.157] (93-56-25-79.ip287.fastwebnet.it [93.56.25.79]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B99DE1A00CA for ; Fri, 27 Oct 2017 08:11:46 +0000 (UTC) Subject: Re: SYNCOPE-1138 followup To: dev@syncope.apache.org References: From: =?UTF-8?Q?Francesco_Chicchiricc=c3=b2?= Message-ID: <7d12123d-15b9-0007-4d7e-4b8254a2fda4@apache.org> Date: Fri, 27 Oct 2017 10:11:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US archived-at: Fri, 27 Oct 2017 08:11:51 -0000 Hi Colm, I confirm the problem on master; 2_0_X works fine with your use-case below, instead. I probably made some mistake when merging to master; a fix will be provided soon. Regards. On 26/10/2017 18:58, Colm O hEigeartaigh wrote: > Hi all, > > A quick follow-up on the fix for SYNCOPE-1138. I'm not able to reproduce > the fix on the latest master code - maybe I'm missing something obvious. > > Here's what I'm doing: > > a) Create a "size" plain attribute > b) Create EngineClass AnyTypeClass with this attribute, and a CarClass > AnyTypeClass > c) Create "isPoweredBy" relationship. > d) Create a "BigEngine" Engine with a of 2000 > e) Create a "BigCar" Car with a relationship to BigEngine. > > I can see the relationship when I search for BigCar: > > curl -u admin:password " > http://localhost:9080/syncope/rest/anyObjects?fiql=%24type==Car" > {"prev":null,"next":null,"page":1,"size":1,"totalCount":1,"result":[{"@class":"org.apache.syncope.common.lib.to.AnyObjectTO","creator":"admin","creationDate":"2017-10-26T16:54:13.495+0000","lastModifier":"admin","lastChangeDate":"2017-10-26T16:54:13.495+0000","key":"7d29f927-056f-481a-a9f9-27056fb81ac0","type":"Car","realm":"/","status":null,"name":"BigCar","dynRealms":[],"auxClasses":[],"plainAttrs":[],"derAttrs":[],"virAttrs":[],"resources":[],"relationships":[{"type":"isPoweredBy","otherEndType":"Engine","otherEndKey":"bdfe29c5-d82a-4c76-be29-c5d82a1c7680"}],"memberships":[],"dynMemberships":[]}]} > > but not when I search for BigEngine: > > curl -u admin:password http://localhost:9080/syncope/rest/curl -u > admin:password " > http://localhost:9080/syncope/rest/anyObjects?fiql=%24type==Engine;size==2000 > " > {"prev":null,"next":null,"page":1,"size":1,"totalCount":1,"result":[{"@class":"org.apache.syncope.common.lib.to.AnyObjectTO","creator":"admin","creationDate":"2017-10-26T16:53:44.848+0000","lastModifier":"admin","lastChangeDate":"2017-10-26T16:53:44.848+0000","key":"bdfe29c5-d82a-4c76-be29-c5d82a1c7680","type":"Engine","realm":"/","status":null,"name":"BigEngine","dynRealms":[],"auxClasses":[],"plainAttrs":[{"schemaInfo":{"@class":"org.apache.syncope.common.lib.to.PlainSchemaTO","key":"size","anyTypeClass":"EngineClass","type":"String","mandatoryCondition":"false","multivalue":false,"uniqueConstraint":false,"readonly":false,"conversionPattern":null,"validator":null,"enumerationValues":"","enumerationKeys":"","secretKey":null,"cipherAlgorithm":null,"mimeType":null},"schema":"size","values":["2000"]}],"derAttrs":[],"virAttrs":[],"resources":[],"relationships":[],"memberships":[],"dynMemberships":[]}]} > > I was expecting to see the reference to BigCar here, as the relationship is > bi-directional but nothing is there. Am I missing something? > > Colm. -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/