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 DD10D200CB4 for ; Tue, 27 Jun 2017 17:17:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DBE54160BC6; Tue, 27 Jun 2017 15:17:09 +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 11CD2160BE9 for ; Tue, 27 Jun 2017 17:17:08 +0200 (CEST) Received: (qmail 82512 invoked by uid 500); 27 Jun 2017 15:17:08 -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 82439 invoked by uid 99); 27 Jun 2017 15:17:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 15:17:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9BA7AC047B for ; Tue, 27 Jun 2017 15:17:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id p26v7ZwCgN7D for ; Tue, 27 Jun 2017 15:17:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 95C205FBBB for ; Tue, 27 Jun 2017 15:17:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0FD9DE0D28 for ; Tue, 27 Jun 2017 15:17:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5B3E424120 for ; Tue, 27 Jun 2017 15:17:02 +0000 (UTC) Date: Tue, 27 Jun 2017 15:17:02 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYNCOPE-1131) Cannot delete resources owned by realms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 27 Jun 2017 15:17:10 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-1131?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 064981#comment-16064981 ]=20 ASF subversion and git services commented on SYNCOPE-1131: ---------------------------------------------------------- Commit 16cf99b5354efdc36a7f519a66fc12005dd8b892 in syncope's branch refs/he= ads/2_0_X from [~ilgrosso] [ https://git-wip-us.apache.org/repos/asf?p=3Dsyncope.git;h=3D16cf99b ] [SYNCOPE-1131] Missing resource removal before delete (for realms) > Cannot delete resources owned by realms > --------------------------------------- > > Key: SYNCOPE-1131 > URL: https://issues.apache.org/jira/browse/SYNCOPE-1131 > Project: Syncope > Issue Type: Bug > Components: core > Affects Versions: 2.0.3 > Reporter: Francesco Chicchiricc=C3=B2 > Assignee: Francesco Chicchiricc=C3=B2 > Fix For: 2.0.4, 2.1.0 > > > When attempting to delete a resource assigned to one or more realms, an e= rror is reported:=20 > {code} > Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: upda= te or delete on table "externalresource" violates foreign key constraint "r= ealm_externalresource_resource_id_fkey" on table "realm_externalresource"= =20 > Detail: Key (id)=3D(XXXX) is still referenced from table "realm_externa= lresource". {prepstmnt 1989356175 DELETE FROM ExternalResource WHERE id =3D= ?} [code=3D0, state=3D23503] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)