This is an automated email from the ASF dual-hosted git repository.

mdisabatino pushed a commit to branch 2_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_0_X by this push:
     new 0ed4362  Exclude notification task from content exporter
0ed4362 is described below

commit 0ed4362683b5190dcfe729433404b31d494c41a8
Author: Marco Di Sabatino Di Diodoro <marco.disabat...@tirasa.net>
AuthorDate: Fri Apr 10 15:53:48 2020 +0200

    Exclude notification task from content exporter
---
 .../syncope/core/persistence/jpa/content/XMLContentExporter.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/content/XMLContentExporter.java
 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/content/XMLContentExporter.java
index bc4372a..4531b12 100644
--- 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/content/XMLContentExporter.java
+++ 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/content/XMLContentExporter.java
@@ -89,7 +89,7 @@ import org.xml.sax.helpers.AttributesImpl;
 public class XMLContentExporter extends AbstractContentDealer implements 
ContentExporter {
 
     protected static final Set<String> TABLE_PREFIXES_TO_BE_EXCLUDED = new 
HashSet<>(Arrays.asList(new String[] {
-        "QRTZ_", "LOGGING", JPAReportExec.TABLE, JPATaskExec.TABLE,
+        "QRTZ_", "LOGGING", "NotificationTask_recipients", 
JPAReportExec.TABLE, JPATaskExec.TABLE,
         JPAUser.TABLE, JPAUPlainAttr.TABLE, JPAUPlainAttrValue.TABLE, 
JPAUPlainAttrUniqueValue.TABLE,
         JPAURelationship.TABLE, JPAUMembership.TABLE,
         JPAAnyObject.TABLE, JPAAPlainAttr.TABLE, JPAAPlainAttrValue.TABLE, 
JPAAPlainAttrUniqueValue.TABLE,
@@ -97,7 +97,7 @@ public class XMLContentExporter extends AbstractContentDealer 
implements Content
     }));
 
     protected static final Map<String, String> TABLES_TO_BE_FILTERED =
-            Collections.singletonMap("TASK", "DTYPE <> 'PropagationTask'");
+            Collections.singletonMap("TASK", "DTYPE <> 'PropagationTask' AND 
DTYPE <> 'NotificationTask'");
 
     protected static final Map<String, Set<String>> COLUMNS_TO_BE_NULLIFIED =
             Collections.singletonMap("SYNCOPEGROUP", 
Collections.singleton("USEROWNER_ID"));

Reply via email to