[
https://issues.apache.org/jira/browse/JCR-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134812#comment-13134812
]
Claus Köll commented on JCR-3128:
---------------------------------
Yes you are right it is not backward compatible,
but the Method works as designed. Please look into the
TextTest.testEscapeIllegalJcrChars() Method.
> Problem with formerly escaped JCR node names when upgrading to Jackrabbit
> 2.2.9
> -------------------------------------------------------------------------------
>
> Key: JCR-3128
> URL: https://issues.apache.org/jira/browse/JCR-3128
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: 2.2.9
> Reporter: Sascha Theves
>
> The following unit test fails:
> {code}
> import static org.junit.Assert.*;
> import org.apache.jackrabbit.util.Text;
> import org.junit.Test;
> public class TestEscaping
> {
> @Test
> public void testEscaping() throws Exception
> {
> // expect this as an escaped string (e.g. formerly escaped with
> jackrabbit 1.6)
> String escaped = "nam%27e";
> String unescaped = Text.unescapeIllegalJcrChars(escaped);
> assertEquals(escaped, Text.escapeIllegalJcrChars(unescaped));
> }
> }
> {code}
> This is a major problem when upgrading from 1.6.x to 2.2.9. The node names
> that were escaped in jackrabbit 1.6 are not longer escaped and that breaks
> the backward compatibility. I think the problem comes in with JCR-2198.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira