Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4441

The default value is not escaped correctly.

    XMLWordPrintableJSON

    Details

      Description

      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;
        }

        Attachments

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              mikaelsvahn Mikael Svahn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: