public void testCreateRepositoryWithInvalidChars() throws Exception
{
String wsName = "ws_over:?//\\__rest!!_1";
String rName = "repo:?//\\_over:_re??st";
RepositoryEntry rDefault =
repositoryService.getConfig().getRepositoryConfiguration(
repositoryService.getConfig().getDefaultRepositoryName());
RepositoryEntry rEntry = new RepositoryEntry();
rEntry.setName(rName);
rEntry.setSessionTimeOut(3600000);
rEntry.setAuthenticationPolicy("org.exoplatform.services.jcr.impl.core.access.JAASAuthenticator");
rEntry.setSecurityDomain("exo-domain");
rEntry.setSystemWorkspaceName(wsName);
rEntry.setDefaultWorkspaceName(wsName);
WorkspaceEntry wEntry =
makeWorkspaceEntry(rDefault.getWorkspaceEntries().get(0), rName, wsName, "jdbcjcr_to_rest_repo_1", true);
rEntry.addWorkspace(wEntry);
JsonGeneratorImpl generatorImpl = new JsonGeneratorImpl();
JsonValue json = generatorImpl.createJsonObject(rEntry);
MultivaluedMap<String, String> headers = new MultivaluedMapImpl();