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 E272E200B3C for ; Mon, 6 Jun 2016 13:58:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E13DC160A24; Mon, 6 Jun 2016 11:58:22 +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 58105160A55 for ; Mon, 6 Jun 2016 13:58:22 +0200 (CEST) Received: (qmail 63910 invoked by uid 500); 6 Jun 2016 11:58:21 -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 63689 invoked by uid 99); 6 Jun 2016 11:58:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2016 11:58:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4B1372C1F69 for ; Mon, 6 Jun 2016 11:58:21 +0000 (UTC) Date: Mon, 6 Jun 2016 11:58:21 +0000 (UTC) From: =?utf-8?Q?Francesco_Chicchiricc=C3=B2_=28JIRA=29?= To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SYNCOPE-866) Check for existence of key before adding template MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Jun 2016 11:58:23 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-866?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Francesco Chicchiricc=C3=B2 resolved SYNCOPE-866. -------------------------------------------- Resolution: Fixed PR merged, thank you very much [~tusharm]! > Check for existence of key before adding template > ------------------------------------------------- > > Key: SYNCOPE-866 > URL: https://issues.apache.org/jira/browse/SYNCOPE-866 > Project: Syncope > Issue Type: Improvement > Components: core > Reporter: Tushar Mishra > Assignee: Francesco Chicchiricc=C3=B2 > Fix For: 2.0.0 > > > The create(String key) method in the MailTemplateLogic and ReportTemplate= Logic classes of the org.apache.syncope.core.logic package should check if = the key being added to the MailTemplateDAO instance is already present. If = such a key already exists, it should throw an appropriate exception for the= same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)