[ https://issues.apache.org/jira/browse/SLING-7791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561641#comment-16561641 ]
Julian Sedding commented on SLING-7791: --------------------------------------- Thanks for reporting this issue. It would be helpful if you could add a failing test to [XmlReaderTest|https://github.com/apache/sling-org-apache-sling-jcr-contentloader/blob/master/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReaderTest.java]. A PR on Github works fine. > ContentImporter does not import characters such as "&" > ------------------------------------------------------ > > Key: SLING-7791 > URL: https://issues.apache.org/jira/browse/SLING-7791 > Project: Sling > Issue Type: Bug > Reporter: Van > Priority: Major > > We are using the org.apache.sling.jcr.contentloader.ContentImporter API to > import data from an UTF-8 encoded XML file into the JCR repository. > Only the ImportOptions has been customized, and the InputStream contains > values such as > {code:java} > liberty & equality > {code} > This will get saved as "*liberty equality*" when I expect "*liberty & > equality*", which I don't understand as I never saw any issue posting such > characters into the JCR. > > org.apache.sling.jcr.contentloader dependency version is 2.1.10 -- This message was sent by Atlassian JIRA (v7.6.3#76005)