Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D85518254 for ; Fri, 18 Dec 2015 18:59:52 +0000 (UTC) Received: (qmail 45821 invoked by uid 500); 18 Dec 2015 18:59:47 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 45391 invoked by uid 500); 18 Dec 2015 18:59:46 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 45337 invoked by uid 99); 18 Dec 2015 18:59:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2015 18:59:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BBAD12C0452 for ; Fri, 18 Dec 2015 18:59:46 +0000 (UTC) Date: Fri, 18 Dec 2015 18:59:46 +0000 (UTC) From: "munene kiruja (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FELIX-5145) FileInstall writes .config files back with backslashes escaping spaces in config values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-5145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] munene kiruja updated FELIX-5145: --------------------------------- Attachment: ConfigurationHandler.java > FileInstall writes .config files back with backslashes escaping spaces in config values > --------------------------------------------------------------------------------------- > > Key: FELIX-5145 > URL: https://issues.apache.org/jira/browse/FELIX-5145 > Project: Felix > Issue Type: Bug > Components: Configuration Admin, File Install > Affects Versions: fileinstall-3.5.0 > Reporter: munene kiruja > Fix For: fileinstall-3.5.2 > > Attachments: ConfigurationHandler.java > > > Fileinstall 3.5.0 added handling of .config file with an expanded syntax for configuration files allowing proper handling of arrays, etc. A great feature. > There is one thing that appears to be handled improperly though - if the values in the key/value pairs have spaces in them, the files are written back with backslash escapes for the spaces. > What is the justification for that? > The effect is that the file is different from the original - which is quite a pain for automated installation with files generated from templates. The fake changes become a maintenance nightmare. > It appears that escaping of spaces can be harmlessly removed, and perhaps should not be a part of the feature... -- This message was sent by Atlassian JIRA (v6.3.4#6332)