felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FELIX-4441) The default value is not escaped correctly.
Date Fri, 28 Feb 2014 08:31:21 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler reassigned FELIX-4441:
---------------------------------------

    Assignee: Carsten Ziegeler

> The default value is not escaped correctly.
> -------------------------------------------
>
>                 Key: FELIX-4441
>                 URL: https://issues.apache.org/jira/browse/FELIX-4441
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: scr generator 1.8.2
>            Reporter: Mikael Svahn
>            Assignee: Carsten Ziegeler
>              Labels: bug, patch
>             Fix For: maven-scr-plugin 1.15.2, scr ant task 1.9.2, scr generator 1.8.4
>
>
> The default value is not correctly escaped when the xml file is generated.
> The problem is that the characters ' ' and ',' is escaped twice.
> It is solved by the following patch
> --- src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java        2014-02-28 08:16:21.706349600
+0100
> +++ src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java        2014-02-28 08:16:28.307009600
+0100
> @@ -284,9 +284,9 @@
>          }
>  
>          String result = value.trim();
> +        result = result.replace("\\", "\\\\");
>          result = result.replace(" ", "\\ ");
>          result = result.replace(",", "\\,");
> -        result = result.replace("\\", "\\\\");
>          return result;
>      }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message