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 BB092200AF1 for ; Tue, 24 May 2016 13:31:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9C16160A30; Tue, 24 May 2016 11:31:14 +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 EC26B160A2D for ; Tue, 24 May 2016 13:31:13 +0200 (CEST) Received: (qmail 39769 invoked by uid 500); 24 May 2016 11:31:12 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 39757 invoked by uid 99); 24 May 2016 11:31:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2016 11:31:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CA71C2C033A for ; Tue, 24 May 2016 11:31:12 +0000 (UTC) Date: Tue, 24 May 2016 11:31:12 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAY-2087) PostCommitFilter is confused about changes made by Pre* listeners MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 May 2016 11:31:14 -0000 [ https://issues.apache.org/jira/browse/CAY-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik updated CAY-2087: --------------------------------- Description: Given a Cayenne stack with: 1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener object. 2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction" is not used (i.e. PostCommitFilter is called inside TransactionFilter). Desired Behavior: All objects added or deleted inside the listener should appear in the commit log the same way any normal objects do. Observed Behavior: Objects deleted by the listeners are excluded from commit log. Objects added by the listeners are included in commit log, but their properties are not tracked. was: Given a Cayenne stack with: 1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener object. 2. Standard PostCommitFilter (CAY-2030) that captures commit log. Desired Behavior: All objects added or deleted inside the listener should appear in the commit log the same way any normal objects do. Observed Behavior: Objects deleted by the listeners are excluded from commit log. Objects added by the listeners are included in commit log, but their properties are not tracked. > PostCommitFilter is confused about changes made by Pre* listeners > ----------------------------------------------------------------- > > Key: CAY-2087 > URL: https://issues.apache.org/jira/browse/CAY-2087 > Project: Cayenne > Issue Type: Bug > Reporter: Andrus Adamchik > Assignee: Andrus Adamchik > > Given a Cayenne stack with: > 1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener object. > 2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction" is not used (i.e. PostCommitFilter is called inside TransactionFilter). > Desired Behavior: > All objects added or deleted inside the listener should appear in the commit log the same way any normal objects do. > Observed Behavior: > Objects deleted by the listeners are excluded from commit log. Objects added by the listeners are included in commit log, but their properties are not tracked. > -- This message was sent by Atlassian JIRA (v6.3.4#6332)