From issues-return-29867-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Thu Jun 9 12:00:26 2016 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2776818537 for ; Thu, 9 Jun 2016 12:00:26 +0000 (UTC) Received: (qmail 45864 invoked by uid 500); 9 Jun 2016 12:00:26 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 45835 invoked by uid 500); 9 Jun 2016 12:00:26 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 45816 invoked by uid 99); 9 Jun 2016 12:00:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 12:00:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DCB882C14F8 for ; Thu, 9 Jun 2016 12:00:25 +0000 (UTC) Date: Thu, 9 Jun 2016 12:00:25 +0000 (UTC) From: "Paolo Antinori (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KARAF-4567) ENC( not working in ConfigAdmin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Paolo Antinori created KARAF-4567: ------------------------------------- Summary: ENC( not working in ConfigAdmin Key: KARAF-4567 URL: https://issues.apache.org/jira/browse/KARAF-4567 Project: Karaf Issue Type: Bug Affects Versions: 4.0.5, 2.4.4 Reporter: Paolo Antinori I'm trying to make support for encrypted properties in in ConfigAdmin and I cannot make it. My suspect is that the functionality is not really working and that the unit test is indeed not testing the functionality. The test is https://github.com/apache/karaf/blob/master/jaas/blueprint/jasypt/src/test/java/org/apache/karaf/jaas/blueprint/jasypt/handler/EncryptableConfigAdminPropertyPlaceholderTest.java and I think it should not assert for the correct value of {{foo}} but it should check the correct value of {{encoded}}, coming from https://github.com/apache/karaf/blob/master/jaas/blueprint/jasypt/src/test/resources/org/apache/karaf/jaas/blueprint/jasypt/handler/configadmin-test.xml I'm still on this and I might be wrong, but for what I can see, tokens like {{ENC(${prop})}} fail to be replaced because {{org.apache.karaf.jaas.jasypt.handler.EncryptablePropertyPlaceholder}} always try to encrypt strings like {{${prop}}} that have not been correctly replaced. -- This message was sent by Atlassian JIRA (v6.3.4#6332)