SLING-6774 - Allowed character set in repo init is too restrictive
* Extend path parser and JCR implementation with valid symbols '+', '@' and ':'
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1808879 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/sling/jcr/repoinit/CreatePathsTest.java b/src/test/java/org/apache/sling/jcr/repoinit/CreatePathsTest.java
index 092c1c8..38b33e6 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/CreatePathsTest.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/CreatePathsTest.java
@@ -50,6 +50,27 @@
U.parseAndExecute("create path " + path);
U.assertNodeExists(path);
}
+
+ @Test
+ public void createSimplePathWithNamespace() throws Exception {
+ final String path = "/rep:policy/one";
+ U.parseAndExecute("create path " + path);
+ U.assertNodeExists(path);
+ }
+
+ @Test
+ public void createSimplePathWithAtSymbol() throws Exception {
+ final String path = "/one/@two/three";
+ U.parseAndExecute("create path " + path);
+ U.assertNodeExists(path);
+ }
+
+ @Test
+ public void createSimplePathWithPlusSymbol() throws Exception {
+ final String path = "/one/+two/three";
+ U.parseAndExecute("create path " + path);
+ U.assertNodeExists(path);
+ }
@Test
public void createPathWithTypes() throws Exception {