Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4041

Escaped braces at the start of a property value are not unescaped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Sling Eclipse IDE 1.0.2
    • Sling Eclipse IDE 1.0.4
    • IDE
    • None

    Description

      Consider a node serialized as

      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
          jcr:primaryType="sling:OsgiConfig"
          org.apache.sling.commons.log.file="logs/missing.log"
          org.apache.sling.commons.log.level="info"
          org.apache.sling.commons.log.names="[org.apache.sling.missing]"
          org.apache.sling.commons.log.pattern="\{0,date,dd.MM.yyyy HH:mm:ss.SSS} *{4}* [{2}] {3} {5}"/>
      

      The value of the org.apache.sling.commons.log.pattern escapes the leading brace since it would be interpreted as a property hint. However, we don't unescape it when writing to the repo so the leading backslash is also sent, which is incorrect.

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: