exo-jcr SVN: r2736 - jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl.
by do-not-reply@jboss.org
Author: skabashnyuk
Date: 2010-07-01 06:08:10 -0400 (Thu, 01 Jul 2010)
New Revision: 2736
Modified:
jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupManagerImpl.java
jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/JobRepositoryRestore.java
Log:
EXOJCR-756 test fix
Modified: jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupManagerImpl.java
===================================================================
--- jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupManagerImpl.java 2010-07-01 08:16:32 UTC (rev 2735)
+++ jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupManagerImpl.java 2010-07-01 10:08:10 UTC (rev 2736)
@@ -162,7 +162,7 @@
private final WorkspaceBackupAutoStopper workspaceBackupStopper;
private final RepositoryBackupAutoStopper repositoryBackupStopper;
-
+
/**
* Temporary directory;
*/
@@ -284,6 +284,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public void run()
{
while (true)
@@ -331,6 +332,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public void run()
{
while (true)
@@ -1364,16 +1366,16 @@
BackupConfigurationException, RepositoryException, RepositoryConfigurationException
{
// Checking repository exists.
- try
+ try
{
repoService.getRepository(repositoryEntry.getName());
throw new BackupConfigurationException("Repository \"" + repositoryEntry.getName() + "\" is already exists.");
- }
- catch (RepositoryException e)
+ }
+ catch (RepositoryException e)
{
//OK. Repository with "repositoryEntry.getName" is not exists.
- }
-
+ }
+
Map<String, BackupChainLog> workspacesMapping = new HashedMap();
Map<String, BackupChainLog> backups = new HashedMap();
@@ -1469,9 +1471,9 @@
JobRepositoryRestore jobRepositoryRestore =
new JobRepositoryRestore(repoService, this, repositoryEntry, workspacesMapping, rblog);
+ restoreRepositoryJobs.add(jobRepositoryRestore);
if (asynchronous)
{
- restoreRepositoryJobs.add(jobRepositoryRestore);
jobRepositoryRestore.start();
}
else
Modified: jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/JobRepositoryRestore.java
===================================================================
--- jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/JobRepositoryRestore.java 2010-07-01 08:16:32 UTC (rev 2735)
+++ jcr/branches/1.12-SEC/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/JobRepositoryRestore.java 2010-07-01 10:08:10 UTC (rev 2736)
@@ -127,6 +127,41 @@
*/
protected void restore() throws RepositoryRestoreExeption
{
+ try
+ {
+ stateRestore = REPOSITORY_RESTORE_STARTED;
+ startTime = Calendar.getInstance();
+
+ restoreRepository();
+
+ stateRestore = REPOSITORY_RESTORE_SUCCESSFUL;
+ endTime = Calendar.getInstance();
+ }
+ catch (Throwable t)
+ {
+ stateRestore = REPOSITORY_RESTORE_FAIL;
+ restoreException = t;
+
+ if (t instanceof RepositoryRestoreExeption)
+ {
+ throw (RepositoryRestoreExeption)t;
+ }
+ else
+ {
+ throw new RuntimeException(t);
+ }
+ }
+ }
+
+ /**
+ * Will be restored the workspace.
+ * @throws RepositoryRestoreExeption
+ *
+ * @throws Throwable
+ * will be generated the Throwable
+ */
+ protected void restoreRepository() throws RepositoryRestoreExeption
+ {
List<WorkspaceEntry> originalWorkspaceEntrys = repositoryEntry.getWorkspaceEntries();
//Getting system workspace entry
@@ -187,28 +222,31 @@
{
currennWorkspaceName = wsEntry.getName();
backupManager.restore(workspacesMapping.get(wsEntry.getName()), repositoryEntry.getName(), wsEntry,
- false);
+ false);
}
}
}
catch (InvalidItemStateException e)
{
restored = false;
-
- log.error("Can not restore workspace \"" + currennWorkspaceName + " in repository \"" + repositoryEntry.getName() + "\".", e);
-
- throw new RepositoryRestoreExeption("Can not restore workspace \"" + currennWorkspaceName + " in repository \"" + repositoryEntry.getName() + "\"."
- + " There was database error.", e);
+ log.error("Can not restore workspace \"" + currennWorkspaceName + " in repository \""
+ + repositoryEntry.getName() + "\".", e);
+
+ throw new RepositoryRestoreExeption("Can not restore workspace \"" + currennWorkspaceName
+ + " in repository \"" + repositoryEntry.getName() + "\"." + " There was database error.", e);
+
}
catch (Throwable t)
{
restored = false;
-
- log.error("Can not restore workspace \"" + currennWorkspaceName + " in repository \"" + repositoryEntry.getName() + "\".", t);
-
- throw new RepositoryRestoreExeption("Can not restore workspace \"" + currennWorkspaceName + " in repository \"" + repositoryEntry.getName() + "\".", t);
+ log.error("Can not restore workspace \"" + currennWorkspaceName + " in repository \""
+ + repositoryEntry.getName() + "\".", t);
+
+ throw new RepositoryRestoreExeption("Can not restore workspace \"" + currennWorkspaceName
+ + " in repository \"" + repositoryEntry.getName() + "\".", t);
+
}
finally
{
@@ -236,7 +274,8 @@
}
catch (Throwable thr)
{
- log.error("The partly restored repository \"" + repositoryEntry.getName() + "\" can not be removed.", thr);
+ log.error("The partly restored repository \"" + repositoryEntry.getName() + "\" can not be removed.",
+ thr);
}
}
}
@@ -265,15 +304,15 @@
/**
* {@inheritDoc}
*/
+ @Override
public void run()
{
-
try
{
stateRestore = REPOSITORY_RESTORE_STARTED;
startTime = Calendar.getInstance();
- restore();
+ restoreRepository();
stateRestore = REPOSITORY_RESTORE_SUCCESSFUL;
endTime = Calendar.getInstance();
13 years, 10 months
exo-jcr SVN: r2735 - jcr/tags/1.12.2-CP01/exo.jcr.connectors.localadapter/src/main/rar/META-INF.
by do-not-reply@jboss.org
Author: tolusha
Date: 2010-07-01 04:16:32 -0400 (Thu, 01 Jul 2010)
New Revision: 2735
Modified:
jcr/tags/1.12.2-CP01/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
Log:
EXOJCR-818: fix version in
Modified: jcr/tags/1.12.2-CP01/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
===================================================================
--- jcr/tags/1.12.2-CP01/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-07-01 07:59:50 UTC (rev 2734)
+++ jcr/tags/1.12.2-CP01/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-07-01 08:16:32 UTC (rev 2735)
@@ -25,7 +25,7 @@
<display-name>JCR repository</display-name>
<vendor-name>exoplatform</vendor-name>
<eis-type />
- <resourceadapter-version>1.12.2-GA</resourceadapter-version>
+ <resourceadapter-version>1.12.2-CP01</resourceadapter-version>
<license>
<license-required>false</license-required>
</license>
13 years, 10 months
exo-jcr SVN: r2734 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core.
by do-not-reply@jboss.org
Author: nzamosenchuk
Date: 2010-07-01 03:59:50 -0400 (Thu, 01 Jul 2010)
New Revision: 2734
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
Log:
EXOJCR-768: Warn in debug mode only
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-07-01 07:50:44 UTC (rev 2733)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-07-01 07:59:50 UTC (rev 2734)
@@ -18,6 +18,7 @@
*/
package org.exoplatform.services.jcr.impl.core;
+import org.exoplatform.commons.utils.PropertyManager;
import org.exoplatform.container.ExoContainer;
import org.exoplatform.services.jcr.access.AccessControlList;
import org.exoplatform.services.jcr.access.AccessManager;
@@ -31,8 +32,8 @@
import org.exoplatform.services.jcr.datamodel.NodeData;
import org.exoplatform.services.jcr.datamodel.QPathEntry;
import org.exoplatform.services.jcr.impl.Constants;
+import org.exoplatform.services.jcr.impl.core.lock.SessionLockManager;
import org.exoplatform.services.jcr.impl.core.lock.WorkspaceLockManager;
-import org.exoplatform.services.jcr.impl.core.lock.SessionLockManager;
import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl;
import org.exoplatform.services.jcr.impl.core.observation.ObservationManagerImpl;
import org.exoplatform.services.jcr.impl.core.observation.ObservationManagerRegistry;
@@ -246,7 +247,7 @@
{
checkLive();
-
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -287,7 +288,7 @@
{
checkLive();
-
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -329,9 +330,9 @@
public void exportWorkspaceSystemView(OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException,
PathNotFoundException, RepositoryException
{
-
+
checkLive();
-
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -371,9 +372,9 @@
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
throws PathNotFoundException, SAXException, RepositoryException
{
-
+
checkLive();
-
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -411,7 +412,7 @@
throws IOException, PathNotFoundException, RepositoryException
{
checkLive();
-
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -864,10 +865,14 @@
{
if (!live)
{
- log
- .warn(
- "This kind of operation is forbidden after a session.logout(), please note that an exception will be raised in the next jcr version.",
- new Exception());
+ // warn in debug mode only
+ if (PropertyManager.isDevelopping())
+ {
+ log
+ .warn(
+ "This kind of operation is forbidden after a session.logout(), please note that an exception will be raised in the next jcr version.",
+ new Exception());
+ }
}
}
13 years, 10 months
exo-jcr SVN: r2733 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core.
by do-not-reply@jboss.org
Author: nzamosenchuk
Date: 2010-07-01 03:50:44 -0400 (Thu, 01 Jul 2010)
New Revision: 2733
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/WorkspaceImpl.java
Log:
EXOJCR-768: Checks added in ItemImpl and WorkspaceImpl.
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2010-07-01 07:44:27 UTC (rev 2732)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2010-07-01 07:50:44 UTC (rev 2733)
@@ -153,13 +153,15 @@
*/
protected boolean checkValid() throws InvalidItemStateException
{
- if (!session.isLive())
+ try
{
- log
- .warn(
- "This kind of operation is forbidden after a session.logout(), please note that an exception will be raised in the next jcr version.",
- new Exception());
+ // Currently it only warns, but newer jcr versions (1.15+) will throw an exception
+ session.checkLive();
}
+ catch (RepositoryException e)
+ {
+ throw new InvalidItemStateException("This kind of operation is forbidden after a session.logout().", e);
+ }
if (data == null)
{
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/WorkspaceImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/WorkspaceImpl.java 2010-07-01 07:44:27 UTC (rev 2732)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/WorkspaceImpl.java 2010-07-01 07:50:44 UTC (rev 2733)
@@ -109,9 +109,13 @@
QueryManagerFactory qf = (QueryManagerFactory)container.getComponentInstanceOfType(QueryManagerFactory.class);
if (qf == null)
+ {
this.queryManager = null;
+ }
else
+ {
this.queryManager = qf.getQueryManager(session);
+ }
}
/**
@@ -121,6 +125,7 @@
throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException,
PathNotFoundException, ItemExistsException, RepositoryException
{
+ session.checkLive();
SessionChangesLog changes = new SessionChangesLog(session.getId());
@@ -146,7 +151,7 @@
ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException,
ItemExistsException, RepositoryException
{
-
+ session.checkLive();
// get source session
SessionImpl srcSession = null;
if (getName() != srcWorkspace)
@@ -161,8 +166,10 @@
// get destination node
JCRPath destNodePath = session.getLocationFactory().parseAbsPath(destAbsPath);
if (destNodePath.isIndexSetExplicitly())
+ {
throw new RepositoryException("The path provided must not have an index on its final element. "
+ destNodePath.getAsString(false));
+ }
// get source node
JCRPath srcNodePath = srcSession.getLocationFactory().parseAbsPath(srcAbsPath);
@@ -226,6 +233,7 @@
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException,
ConstraintViolationException, VersionException, RepositoryException
{
+ session.checkLive();
NodeImpl node = (NodeImpl)session.getItem(parentAbsPath);
// checked-in check
if (!node.checkedOut())
@@ -294,9 +302,11 @@
public QueryManager getQueryManager() throws RepositoryException
{
if (queryManager == null)
+ {
throw new RepositoryException(
"Query Manager Factory not found. Check configuration of the query-handler for workspace " + getName()
+ ".");
+ }
return queryManager;
}
@@ -344,6 +354,8 @@
throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException,
InvalidSerializedDataException, RepositoryException
{
+ session.checkLive();
+
NodeImpl node = (NodeImpl)session.getItem(parentAbsPath);
if (!node.checkedOut())
{
@@ -378,12 +390,14 @@
public void move(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException,
AccessDeniedException, PathNotFoundException, ItemExistsException, RepositoryException
{
-
+ session.checkLive();
// get destination node
JCRPath destNodePath = session.getLocationFactory().parseAbsPath(destAbsPath);
if (destNodePath.isIndexSetExplicitly())
+ {
throw new RepositoryException("The path provided must not have an index on its final element. "
+ destNodePath.getAsString(false));
+ }
// get source node
JCRPath srcNodePath = session.getLocationFactory().parseAbsPath(srcAbsPath);
@@ -427,11 +441,15 @@
// Check if versionable ancestor is not checked-in
if (!srcNode.checkedOut())
+ {
throw new VersionException("Source parent node " + srcNode.getPath()
+ " or its nearest ancestor is checked-in");
+ }
// Check locking
if (!srcNode.checkLocking())
+ {
throw new LockException("Source parent node " + srcNode.getPath() + " is locked ");
+ }
ItemDataMoveVisitor initializer =
new ItemDataMoveVisitor((NodeData)destParentNode.getData(), destNodePath.getName().getInternalName(),
@@ -460,13 +478,17 @@
{
if (srcWorkspace.equals(getName()))
+ {
throw new RepositoryException("Source and destination workspace are equals " + name);
+ }
// make dest node path
JCRPath destNodePath = session.getLocationFactory().parseAbsPath(destAbsPath);
if (destNodePath.isIndexSetExplicitly())
+ {
throw new RepositoryException("DestPath should not contain an index " + destAbsPath);
+ }
// find src node
SessionImpl srcSession = repository().internalLogin(session.getUserState(), srcWorkspace);
@@ -538,9 +560,11 @@
protected void restoreVersions(Version[] versions, boolean removeExisting)
throws UnsupportedRepositoryOperationException, VersionException, RepositoryException, InvalidItemStateException
{
-
+ session.checkLive();
if (session.hasPendingChanges())
+ {
throw new InvalidItemStateException("Session has pending changes ");
+ }
// for restore operation
List<String> existedIdentifiers = new ArrayList<String>(); // InWorkspace
@@ -575,9 +599,13 @@
((SessionImpl)v.getSession()).getTransientNodesManager().getTransactManager();
corrNode = (NodeData)vDataManager.getItemData(versionableIdentifier);
if (corrNode != null)
+ {
versionableParentIdentifier = corrNode.getParentIdentifier();
+ }
else
+ {
log.warn("Workspace.restore(). Correspondent node is not found " + versionableIdentifier);
+ }
}
if (versionableParentIdentifier != null && existedIdentifiers.contains(versionableParentIdentifier))
{
@@ -605,7 +633,7 @@
// parent
// it's a VH
VersionHistoryDataHelper historyHelper =
- new VersionHistoryDataHelper((NodeData)vh, dataManager, nodeTypeManager);
+ new VersionHistoryDataHelper(vh, dataManager, nodeTypeManager);
changesLog.addAll(v.restoreLog(destParent, node.getQPath().getName(), historyHelper, session,
removeExisting, changesLog).getAllStates());
@@ -643,7 +671,7 @@
// version parent it's a VH
NodeData vh = (NodeData)dataManager.getItemData(v.getParentIdentifier());
VersionHistoryDataHelper historyHelper =
- new VersionHistoryDataHelper((NodeData)vh, dataManager, nodeTypeManager);
+ new VersionHistoryDataHelper(vh, dataManager, nodeTypeManager);
changesLog.addAll(v.restoreLog(destParent, node.getQPath().getName(), historyHelper, session,
removeExisting, changesLog).getAllStates());
13 years, 10 months
exo-jcr SVN: r2732 - in jcr/branches/1.12.2-CP01: applications and 25 other directories.
by do-not-reply@jboss.org
Author: pnedonosko
Date: 2010-07-01 03:44:27 -0400 (Thu, 01 Jul 2010)
New Revision: 2732
Modified:
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml
jcr/branches/1.12.2-CP01/applications/pom.xml
jcr/branches/1.12.2-CP01/docs/pom.xml
jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml
jcr/branches/1.12.2-CP01/docs/reference/pom.xml
jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml
jcr/branches/1.12.2-CP01/docs/userguide/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml
jcr/branches/1.12.2-CP01/packaging/module/pom.xml
jcr/branches/1.12.2-CP01/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.applications.backupconsole</artifactId>
<name>eXo JCR :: Applications :: Backup Console</name>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.applications.browser</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.applications.config</artifactId>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.applications.fckeditor</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.applications.rest</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
<relativePath>exo.jcr.applications.config</relativePath>
</parent>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.cluster.testclient</artifactId>
<name>eXo JCR :: Cluster :: Test Client</name>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.ear</artifactId>
<packaging>ear</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/applications/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,12 +22,12 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
<name>eXo JCR :: Applications :: Reactor</name>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/docs/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/docs/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>reference-docs</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/reference/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/reference/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/docs/reference/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>userguide-docs</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/userguide/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/userguide/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/docs/userguide/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.component.core</artifactId>
<name>eXo JCR :: Component :: Core Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.component.ext</artifactId>
<name>eXo JCR :: Component :: Extension Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.component.ftp</artifactId>
<name>eXo JCR :: Component :: FTP Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.component.statistics</artifactId>
<name>eXo JCR :: Component :: Statistics Provider</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.component.webdav</artifactId>
<name>eXo JCR :: Component :: Webdav Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.connectors.localadapter</artifactId>
<packaging>rar</packaging>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.framework.command</artifactId>
<name>eXo JCR :: Framework :: Command</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.framework.ftpclient</artifactId>
<name>eXo JCR :: Framework :: FTP Client</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>exo.jcr.framework.web</artifactId>
<name>eXo JCR :: Framework :: Web</name>
Modified: jcr/branches/1.12.2-CP01/packaging/module/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/packaging/module/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/packaging/module/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -4,7 +4,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
</parent>
<artifactId>jcr.packaging.module</artifactId>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/pom.xml 2010-07-01 07:43:43 UTC (rev 2731)
+++ jcr/branches/1.12.2-CP01/pom.xml 2010-07-01 07:44:27 UTC (rev 2732)
@@ -29,14 +29,14 @@
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01</version>
+ <version>1.12.2-CP02-SNAPSHOT</version>
<packaging>pom</packaging>
<name>eXo JCR</name>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.12.2-CP01</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/tags/1.12.2-CP01</developerConnection>
- <url>http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.12.2-CP01</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/branches/1.12.2-CP01/</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/branches/1.12.2-CP01/</developerConnection>
+ <url>http://fisheye.jboss.org/browse/exo-jcr/jcr/branches/1.12.2-CP01/</url>
</scm>
<properties>
13 years, 10 months
exo-jcr SVN: r2731 - jcr/tags.
by do-not-reply@jboss.org
Author: pnedonosko
Date: 2010-07-01 03:43:43 -0400 (Thu, 01 Jul 2010)
New Revision: 2731
Added:
jcr/tags/1.12.2-CP01/
Log:
[maven-scm] copy for tag 1.12.2-CP01
Copied: jcr/tags/1.12.2-CP01 (from rev 2730, jcr/branches/1.12.2-CP01)
13 years, 10 months
exo-jcr SVN: r2730 - in jcr/branches/1.12.2-CP01: applications and 25 other directories.
by do-not-reply@jboss.org
Author: pnedonosko
Date: 2010-07-01 03:43:21 -0400 (Thu, 01 Jul 2010)
New Revision: 2730
Modified:
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml
jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml
jcr/branches/1.12.2-CP01/applications/pom.xml
jcr/branches/1.12.2-CP01/docs/pom.xml
jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml
jcr/branches/1.12.2-CP01/docs/reference/pom.xml
jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml
jcr/branches/1.12.2-CP01/docs/userguide/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml
jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml
jcr/branches/1.12.2-CP01/packaging/module/pom.xml
jcr/branches/1.12.2-CP01/pom.xml
Log:
[maven-release-plugin] prepare release 1.12.2-CP01
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.backupconsole/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.applications.backupconsole</artifactId>
<name>eXo JCR :: Applications :: Backup Console</name>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.browser/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.applications.browser</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.config/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.applications.config</artifactId>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.fckeditor/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.applications.fckeditor</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jboss/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.jonas/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.rest/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.applications.rest</artifactId>
<packaging>war</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.applications.tomcat/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
<relativePath>exo.jcr.applications.config</relativePath>
</parent>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.cluster.testclient/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.cluster.testclient</artifactId>
<name>eXo JCR :: Cluster :: Test Client</name>
Modified: jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/exo.jcr.ear/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.ear</artifactId>
<packaging>ear</packaging>
Modified: jcr/branches/1.12.2-CP01/applications/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/applications/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/applications/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,12 +22,12 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jcr-applications-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
<name>eXo JCR :: Applications :: Reactor</name>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/docs/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/docs/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/docs/reference/en/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>reference-docs</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/reference/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/reference/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/docs/reference/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/docs/userguide/en/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>userguide-docs</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/docs/userguide/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/docs/userguide/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/docs/userguide/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.core/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.component.core</artifactId>
<name>eXo JCR :: Component :: Core Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.ext/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.component.ext</artifactId>
<name>eXo JCR :: Component :: Extension Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.ftp/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.component.ftp</artifactId>
<name>eXo JCR :: Component :: FTP Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.statistics/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.component.statistics</artifactId>
<name>eXo JCR :: Component :: Statistics Provider</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.component.webdav/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.component.webdav</artifactId>
<name>eXo JCR :: Component :: Webdav Service</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.connectors.localadapter/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.connectors.localadapter</artifactId>
<packaging>rar</packaging>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.command/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.framework.command</artifactId>
<name>eXo JCR :: Framework :: Command</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.ftpclient/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.framework.ftpclient</artifactId>
<name>eXo JCR :: Framework :: FTP Client</name>
Modified: jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/exo.jcr.framework.web/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>exo.jcr.framework.web</artifactId>
<name>eXo JCR :: Framework :: Web</name>
Modified: jcr/branches/1.12.2-CP01/packaging/module/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/packaging/module/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/packaging/module/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -4,7 +4,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
</parent>
<artifactId>jcr.packaging.module</artifactId>
<packaging>pom</packaging>
Modified: jcr/branches/1.12.2-CP01/pom.xml
===================================================================
--- jcr/branches/1.12.2-CP01/pom.xml 2010-07-01 07:29:29 UTC (rev 2729)
+++ jcr/branches/1.12.2-CP01/pom.xml 2010-07-01 07:43:21 UTC (rev 2730)
@@ -29,14 +29,14 @@
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.2-CP01-SNAPSHOT</version>
+ <version>1.12.2-CP01</version>
<packaging>pom</packaging>
<name>eXo JCR</name>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/branches/1.12.2-CP01/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/branches/1.12.2-CP01/</developerConnection>
- <url>http://fisheye.jboss.org/browse/exo-jcr/jcr/branches/1.12.2-CP01/</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.12.2-CP01</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/tags/1.12.2-CP01</developerConnection>
+ <url>http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.12.2-CP01</url>
</scm>
<properties>
13 years, 10 months
exo-jcr SVN: r2729 - jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext.
by do-not-reply@jboss.org
Author: dkatayev
Date: 2010-07-01 03:29:29 -0400 (Thu, 01 Jul 2010)
New Revision: 2729
Modified:
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
Log:
EXOJCR-774 filing testNotModifiedSince(org.exoplatform.services.jcr.webdav.ext.TestCaching) fixed. The problem occured when rolling back date.
Modified: jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
===================================================================
--- jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01 07:13:18 UTC (rev 2728)
+++ jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01 07:29:29 UTC (rev 2729)
@@ -65,9 +65,9 @@
SimpleDateFormat dateFormat = new SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN);
Calendar lastModifiedDate = lastModifiedProperty.getDate();
-
- lastModifiedDate.roll(Calendar.WEEK_OF_MONTH, -1);
- // Rollback If-Modified-Since date a week earlier.
+
+ lastModifiedDate.roll(Calendar.SECOND, -10);
+ // Rollback If-Modified-Since 10 seconds earlier.
String ifModifiedDate = dateFormat.format(lastModifiedDate.getTime());
MultivaluedMap<String, String> headers = new MultivaluedMapImpl();
13 years, 10 months
exo-jcr SVN: r2728 - jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext.
by do-not-reply@jboss.org
Author: dkatayev
Date: 2010-07-01 03:13:18 -0400 (Thu, 01 Jul 2010)
New Revision: 2728
Modified:
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
Log:
EXOJCR-774 filing testNotModifiedSince(org.exoplatform.services.jcr.webdav.ext.TestCaching) fixed. The problem occured when rolling back date.
Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
===================================================================
--- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01 06:53:53 UTC (rev 2727)
+++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01 07:13:18 UTC (rev 2728)
@@ -67,8 +67,8 @@
SimpleDateFormat dateFormat = new SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN);
Calendar lastModifiedDate = lastModifiedProperty.getDate();
- lastModifiedDate.roll(Calendar.WEEK_OF_MONTH, -1);
- // Rollback If-Modified-Since date a week earlier.
+ lastModifiedDate.roll(Calendar.SECOND, -10);
+ // Rollback If-Modified-Since 10 seconds earlier.
String ifModifiedDate = dateFormat.format(lastModifiedDate.getTime());
MultivaluedMap<String, String> headers = new MultivaluedMapImpl();
@@ -96,11 +96,8 @@
assertEquals(HTTPStatus.NOT_MODIFIED, response.getStatus());
}
- public void _testNotModifiedSinceFRLocale() throws Exception
+ public void _testModifiedSinceLocaleFR() throws Exception
{
- Node contentNode = node.getNode("jcr:content");
- Property lastModifiedProperty = contentNode.getProperty("jcr:lastModified");
-
SimpleDateFormat sdf = new SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN, Locale.FRENCH);
String ifModifiedDate = sdf.format(sdf.getCalendar().getTime());
13 years, 10 months
exo-jcr SVN: r2727 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core: version and 1 other directory.
by do-not-reply@jboss.org
Author: nzamosenchuk
Date: 2010-07-01 02:53:53 -0400 (Thu, 01 Jul 2010)
New Revision: 2727
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionHistoryImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionImpl.java
Log:
EXOJCR-768: Checks added in ItemImpl and it's descendants, also sessionImpl.
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2010-06-30 13:23:12 UTC (rev 2726)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2010-07-01 06:53:53 UTC (rev 2727)
@@ -191,6 +191,7 @@
*/
public Item getAncestor(int degree) throws ItemNotFoundException, AccessDeniedException, RepositoryException
{
+ checkValid();
try
{
// 6.2.8 If depth > n is specified then an ItemNotFoundException is
@@ -789,6 +790,7 @@
*/
public NodeData parentData() throws RepositoryException
{
+ checkValid();
NodeData parent = (NodeData)dataManager.getItemData(getData().getParentIdentifier());
if (parent == null)
{
@@ -873,6 +875,7 @@
public boolean hasPermission(String action) throws RepositoryException
{
+ checkValid();
NodeData ndata;
if (isNode())
{
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2010-06-30 13:23:12 UTC (rev 2726)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2010-07-01 06:53:53 UTC (rev 2727)
@@ -190,7 +190,9 @@
checkValid();
if (LOG.isDebugEnabled())
+ {
LOG.debug("Node.addMixin " + mixinName + " " + getPath());
+ }
InternalQName name = locationFactory.parseJCRName(mixinName).getInternalName();
@@ -209,23 +211,33 @@
// Mixin or not
if (type == null || !type.isMixin())
+ {
throw new NoSuchNodeTypeException("Nodetype " + mixinName + " not found or not mixin type.");
+ }
// Validate
if (session.getWorkspace().getNodeTypesHolder().isNodeType(type.getName(), nodeData().getPrimaryTypeName(),
nodeData().getMixinTypeNames()))
+ {
throw new ConstraintViolationException("Can not add mixin type " + mixinName + " to " + getPath());
+ }
if (definition.isProtected())
+ {
throw new ConstraintViolationException("Can not add mixin type. Node is protected " + getPath());
+ }
// Check if versionable ancestor is not checked-in
if (!checkedOut())
+ {
throw new VersionException("Node " + getPath() + " or its nearest ancestor is checked-in");
+ }
// Check locking
if (!checkLocking())
+ {
throw new LockException("Node " + getPath() + " is locked ");
+ }
doAddMixin(type);
}
@@ -239,23 +251,31 @@
checkValid();
if (JCRPath.THIS_RELPATH.equals(relPath))
+ {
throw new RepositoryException("Can't add node to the path '" + relPath + "'");
+ }
// Parent can be not the same as this node
JCRPath itemPath = locationFactory.parseRelPath(relPath);
// Check if there no final index
if (itemPath.isIndexSetExplicitly())
+ {
throw new RepositoryException("The relPath provided must not have an index on its final element. "
+ itemPath.getAsString(false));
+ }
ItemImpl parentItem =
dataManager.getItem(nodeData(), itemPath.makeParentPath().getInternalPath().getEntries(), false);
if (parentItem == null)
+ {
throw new PathNotFoundException("Parent not found for " + itemPath.getAsString(true));
+ }
if (!parentItem.isNode())
+ {
throw new ConstraintViolationException("Parent item is not a node " + parentItem.getPath());
+ }
NodeImpl parent = (NodeImpl)parentItem;
InternalQName name = itemPath.getName().getInternalName();
@@ -266,12 +286,15 @@
nodeData().getMixinTypeNames());
if (nodeDef == null)
+ {
throw new ConstraintViolationException("Can not define node type for " + name.getAsString());
+ }
InternalQName primaryTypeName = nodeDef.getName();
if (nodeDef.getName().equals(name) || primaryTypeName.equals(Constants.JCR_ANY_NAME))
-
+ {
primaryTypeName = nodeDef.getDefaultPrimaryType();
+ }
// try to make new node
return doAddNode(parent, name, primaryTypeName);
@@ -287,23 +310,31 @@
checkValid();
if (JCRPath.THIS_RELPATH.equals(relPath))
+ {
throw new RepositoryException("Can't add node to the path '" + relPath + "'");
+ }
// Parent can be not the same as this node
JCRPath itemPath = locationFactory.parseRelPath(relPath);
// Check if there no final index
if (itemPath.isIndexSetExplicitly())
+ {
throw new RepositoryException("The relPath provided must not have an index on its final element. "
+ itemPath.getAsString(false));
+ }
ItemImpl parentItem =
dataManager.getItem(nodeData(), itemPath.makeParentPath().getInternalPath().getEntries(), false);
if (parentItem == null)
+ {
throw new PathNotFoundException("Parent not found for " + itemPath.getAsString(true));
+ }
if (!parentItem.isNode())
+ {
throw new ConstraintViolationException("Parent item is not a node " + parentItem.getPath());
+ }
NodeImpl parent = (NodeImpl)parentItem;
InternalQName name = itemPath.getName().getInternalName();
@@ -326,20 +357,30 @@
locationFactory.parseJCRName(mixinName).getInternalName());
if (type == null)
+ {
throw new NoSuchNodeTypeException("Nodetype not found (mixin) " + mixinName);
+ }
if (session.getWorkspace().getNodeTypesHolder().isNodeType(type.getName(), nodeData().getPrimaryTypeName(),
nodeData().getMixinTypeNames()))
+ {
return false;
+ }
if (definition.isProtected())
+ {
return false;
+ }
if (!checkedOut())
+ {
return false;
+ }
if (!checkLocking())
+ {
return false;
+ }
return true;
}
@@ -371,7 +412,7 @@
*/
public boolean checkedOut() throws UnsupportedRepositoryOperationException, RepositoryException
{
-
+ // this will also check if item is valid
NodeData vancestor = getVersionableAncestor();
if (vancestor != null)
{
@@ -401,8 +442,10 @@
checkValid();
if (!this.isNodeType(Constants.MIX_VERSIONABLE))
+ {
throw new UnsupportedRepositoryOperationException(
"Node.checkin() is not supported for not mix:versionable node ");
+ }
if (!this.checkedOut())
{
@@ -410,13 +453,19 @@
}
if (session.getTransientNodesManager().hasPendingChanges(getInternalPath()))
+ {
throw new InvalidItemStateException("Node has pending changes " + getPath());
+ }
if (hasProperty(Constants.JCR_MERGEFAILED))
+ {
throw new VersionException("Node has jcr:mergeFailed " + getPath());
+ }
if (!parent().checkLocking())
+ {
throw new LockException("Node " + parent().getPath() + " is locked ");
+ }
// the new version identifier
String verIdentifier = IdGenerator.generate();
@@ -452,11 +501,15 @@
checkValid();
if (!this.isNodeType(Constants.MIX_VERSIONABLE))
+ {
throw new UnsupportedRepositoryOperationException(
"Node.checkout() is not supported for not mix:versionable node ");
+ }
if (checkedOut())
+ {
return;
+ }
SessionChangesLog changesLog = new SessionChangesLog(session.getId());
@@ -493,10 +546,11 @@
*/
public void clearACL() throws RepositoryException, AccessControlException
{
-
if (!isNodeType(Constants.EXO_PRIVILEGEABLE))
+ {
throw new AccessControlException("Node is not exo:privilegeable " + getPath());
-
+ }
+ // this will also check if item is valid
checkPermission(PermissionType.CHANGE_PERMISSION);
List<AccessControlEntry> aces = new ArrayList<AccessControlEntry>();
@@ -526,7 +580,7 @@
* @throws RepositoryException
* if any other error occurs
*/
- public void doAddMixin(NodeTypeData type) throws NoSuchNodeTypeException, ConstraintViolationException,
+ private void doAddMixin(NodeTypeData type) throws NoSuchNodeTypeException, ConstraintViolationException,
VersionException, LockException, RepositoryException
{
@@ -598,7 +652,9 @@
session.getActionHandler().postAddMixin(this, type.getName());
if (LOG.isDebugEnabled())
+ {
LOG.debug("Node.addMixin Property " + prop.getQPath().getAsString() + " values " + mixinTypes.length);
+ }
}
/**
@@ -625,7 +681,9 @@
NodeImpl otherNode = (NodeImpl)obj;
if (!otherNode.isValid() || !this.isValid())
+ {
return false;
+ }
try
{
@@ -674,7 +732,9 @@
checkValid();
if (!this.isNodeType(Constants.MIX_VERSIONABLE))
+ {
throw new UnsupportedRepositoryOperationException("Node is not versionable " + getPath());
+ }
PropertyData bvProp =
(PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_BASEVERSION, 1));
@@ -727,13 +787,17 @@
{
NodeData corrAncestor = (NodeData)corrDataManager.getItemData(ancestor.getIdentifier());
if (corrAncestor == null)
+ {
throw new ItemNotFoundException("No corresponding path for ancestor "
+ ancestor.getQPath().getAsString() + " in " + corrSession.getWorkspace().getName());
+ }
NodeData corrNode =
(NodeData)corrDataManager.getItemData(corrAncestor, myPath.getRelPath(myPath.getDepth() - i));
if (corrNode != null)
+ {
return corrNode;
+ }
}
}
}
@@ -1051,7 +1115,9 @@
{
Item primaryItem = dataManager.getItem(nodeData(), new QPathEntry(ntData.getPrimaryItemName(), 0), true);
if (primaryItem != null)
+ {
return primaryItem;
+ }
}
}
@@ -1078,7 +1144,9 @@
long start = System.currentTimeMillis();
if (LOG.isDebugEnabled())
+ {
LOG.debug("getProperties() >>>>>");
+ }
checkValid();
@@ -1193,11 +1261,15 @@
JCRPath itemPath = locationFactory.parseRelPath(relPath);
if (LOG.isDebugEnabled())
+ {
LOG.debug("getProperty() " + getLocation().getAsString(false) + " " + relPath);
+ }
ItemImpl prop = dataManager.getItem(nodeData(), itemPath.getInternalPath().getEntries(), true);
if (prop == null || prop.isNode())
+ {
throw new PathNotFoundException("Property not found " + itemPath.getAsString(false));
+ }
return (Property)prop;
}
@@ -1240,6 +1312,7 @@
*/
public NodeData getVersionableAncestor() throws RepositoryException
{
+ checkValid();
NodeData node = nodeData();
NodeTypeDataManager ntman = session.getWorkspace().getNodeTypesHolder();
@@ -1255,11 +1328,15 @@
// check on deeper ancestor
NodeData ancestor = (NodeData)dataManager.getItemData(node.getParentIdentifier());
if (ancestor == null)
+ {
throw new RepositoryException("Parent not found for "
+ locationFactory.createJCRPath(node.getQPath()).getAsString(false) + ". Parent id "
+ node.getParentIdentifier());
+ }
else
+ {
node = ancestor;
+ }
}
}
@@ -1407,6 +1484,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public void loadData(ItemData data, NodeData parent) throws RepositoryException, InvalidItemStateException,
ConstraintViolationException
{
@@ -1484,6 +1562,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public ItemDefinitionData getItemDefinitionData()
{
return definition;
@@ -1499,10 +1578,14 @@
checkValid();
if (!isNodeType(Constants.MIX_LOCKABLE))
+ {
throw new LockException("Node is not lockable " + getPath());
+ }
if (dataManager.hasPendingChanges(getInternalPath()))
+ {
throw new InvalidItemStateException("Node has pending unsaved changes " + getPath());
+ }
Lock newLock = session.getLockManager().addLock(this, isDeep, isSessionScoped, -1);
@@ -1535,10 +1618,14 @@
checkValid();
if (!isNodeType(Constants.MIX_LOCKABLE))
+ {
throw new LockException("Node is not lockable " + getPath());
+ }
if (dataManager.hasPendingChanges(getInternalPath()))
+ {
throw new InvalidItemStateException("Node has pending unsaved changes " + getPath());
+ }
Lock newLock = session.getLockManager().addLock(this, isDeep, false, timeOut);
@@ -1572,7 +1659,9 @@
checkValid();
if (session.hasPendingChanges())
+ {
throw new InvalidItemStateException("Session has pending changes ");
+ }
Map<String, String> failed = new HashMap<String, String>();
@@ -1588,7 +1677,9 @@
EntityCollection failedIter = createMergeFailed(failed, changes);
if (changes.getSize() > 0)
+ {
dataManager.getTransactManager().save(changes);
+ }
return failedIter;
}
@@ -1603,8 +1694,10 @@
checkValid();
if (!getPrimaryNodeType().hasOrderableChildNodes())
+ {
throw new UnsupportedRepositoryOperationException("Node does not support child ordering "
+ getPrimaryNodeType().getName());
+ }
JCRPath sourcePath = locationFactory.createJCRPath(getLocation(), srcName);
JCRPath destenationPath = destName != null ? locationFactory.createJCRPath(getLocation(), destName) : null;
@@ -1647,7 +1740,9 @@
// no mixin found
if (removedName == null)
+ {
throw new NoSuchNodeTypeException("No mixin type found " + mixinName + " for node " + getPath());
+ }
// A ConstraintViolationException will be thrown either
// immediately or on save if the removal of a mixin is not
@@ -1701,8 +1796,10 @@
{
ItemData p = dataManager.getItemData(nodeData(), new QPathEntry(pd.getName(), 1));
if (p != null && !p.isNode())
+ {
// remove it
dataManager.delete(p, ancestorToSave);
+ }
}
for (NodeDefinitionData nd : ntmanager.getAllChildNodeDefinitions(removedName))
@@ -1760,7 +1857,9 @@
checkValid();
if (!isNodeType(Constants.EXO_PRIVILEGEABLE))
+ {
throw new AccessControlException("Node is not exo:privilegeable " + getPath());
+ }
checkPermission(PermissionType.CHANGE_PERMISSION);
@@ -1791,20 +1890,30 @@
checkValid();
if (!this.isNodeType(Constants.MIX_VERSIONABLE))
+ {
throw new UnsupportedRepositoryOperationException("Node is not versionable " + getPath());
+ }
if (session.hasPendingChanges())
+ {
throw new InvalidItemStateException("Session has pending changes ");
+ }
if (((VersionImpl)version).getInternalName().equals(Constants.JCR_ROOTVERSION))
+ {
throw new VersionException("It is illegal to call restore() on jcr:rootVersion");
+ }
if (!versionHistory(false).isVersionBelongToThis(version))
+ {
throw new VersionException("Bad version " + version.getPath());
+ }
// Check locking
if (!checkLocking())
+ {
throw new LockException("Node " + getPath() + " is locked ");
+ }
NodeData destParent = (NodeData)dataManager.getItemData(nodeData().getParentIdentifier());
((VersionImpl)version).restore(this.getSession(), destParent, nodeData().getQPath().getName(), removeExisting);
@@ -1831,18 +1940,26 @@
checkValid();
if (session.hasPendingChanges())
+ {
throw new InvalidItemStateException("Session has pending changes ");
+ }
if (((VersionImpl)version).getInternalName().equals(Constants.JCR_ROOTVERSION))
+ {
throw new VersionException("It is illegal to call restore() on jcr:rootVersion");
+ }
QPath destPath = locationFactory.parseRelPath(relPath).getInternalPath();
NodeImpl destParent = (NodeImpl)dataManager.getItem(nodeData(), destPath.makeParentPath().getEntries(), false);
if (destParent == null)
+ {
throw new PathNotFoundException("Parent not found for " + relPath);
+ }
if (!destParent.isNode())
+ {
throw new ConstraintViolationException("Parent item is not a node. Rel path " + relPath);
+ }
NodeImpl destNode =
(NodeImpl)dataManager.getItem(destParent.nodeData(),
@@ -1853,25 +1970,35 @@
// Dest node exists
if (!destNode.isNode())
+ {
throw new ConstraintViolationException("Item at relPath is not a node " + destNode.getPath());
+ }
if (!destNode.isNodeType(Constants.MIX_VERSIONABLE))
+ {
throw new UnsupportedRepositoryOperationException("Node at relPath is not versionable "
+ destNode.getPath());
+ }
if (!destNode.versionHistory(false).isVersionBelongToThis(version))
+ {
throw new VersionException("Bad version " + version.getPath());
+ }
// Check locking
if (!destNode.parent().checkLocking())
+ {
throw new LockException("Node " + destNode.getPath() + " is locked ");
+ }
}
else
{
// Dest node not found
if (!destParent.checkedOut())
+ {
throw new VersionException("Parent of a node at relPath is versionable and checked-in "
+ destParent.getPath());
+ }
}
((VersionImpl)version).restore(session, destParent.nodeData(), destPath.getName(), removeExisting);
@@ -1955,11 +2082,15 @@
{
String identity = i.next();
if (identity == null)
+ {
throw new RepositoryException("Identity cannot be null");
+ }
String[] perm = (String[])permissions.get(identity);
if (perm == null)
+ {
throw new RepositoryException("Permissions cannot be null");
+ }
for (int j = 0; j < perm.length; j++)
{
@@ -2187,13 +2318,19 @@
checkValid();
if (!session.getLockManager().holdsLock((NodeData)this.getData()))
+ {
throw new LockException("The node not locked " + getPath());
+ }
if (!session.getLockManager().isLockHolder(this.nodeData()))
+ {
throw new LockException("There are no permission to unlock the node " + getPath());
+ }
if (dataManager.hasPendingChanges(getInternalPath()))
+ {
throw new InvalidItemStateException("Node has pending unsaved changes " + getPath());
+ }
doUnlock();
@@ -2211,11 +2348,15 @@
// Check pending changes
if (session.hasPendingChanges())
+ {
throw new InvalidItemStateException("Session has pending changes ");
+ }
// Check locking
if (!checkLocking())
+ {
throw new LockException("Node " + getPath() + " is locked ");
+ }
SessionChangesLog changes = new SessionChangesLog(session.getId());
@@ -2257,12 +2398,16 @@
NodeTypeDataManager nodeTypeDataManager = session.getWorkspace().getNodeTypesHolder();
NodeTypeData nodeType = nodeTypeDataManager.getNodeType(primaryTypeName);
if (nodeType == null)
+ {
throw new NoSuchNodeTypeException("Nodetype not found "
+ sysLocFactory.createJCRName(primaryTypeName).getAsString());
+ }
if (nodeType.isMixin())
+ {
throw new ConstraintViolationException("Add Node failed, "
+ sysLocFactory.createJCRName(primaryTypeName).getAsString() + " is MIXIN type!");
+ }
// Check if new node's node type is allowed by its parent definition
@@ -2279,20 +2424,28 @@
session.getWorkspace().getNodeTypesHolder().getChildNodeDefinition(name, nodeData().getPrimaryTypeName(),
nodeData().getMixinTypeNames());
if (childNodeDefinition == null)
+ {
throw new ConstraintViolationException("Can't find child node definition for "
+ sysLocFactory.createJCRName(name).getAsString() + " in " + getPath());
+ }
if (childNodeDefinition.isProtected())
+ {
throw new ConstraintViolationException("Can't add protected node "
+ sysLocFactory.createJCRName(name).getAsString() + " to " + getPath());
+ }
// Check if versionable ancestor is not checked-in
if (!checkedOut())
+ {
throw new VersionException("Node " + getPath() + " or its nearest ancestor is checked-in");
+ }
if (!checkLocking())
+ {
// Check locking
throw new LockException("Node " + getPath() + " is locked ");
+ }
}
@@ -2320,7 +2473,9 @@
PropertyData vhProp =
(PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_VERSIONHISTORY, 1));
if (vhProp == null)
+ {
throw new UnsupportedRepositoryOperationException("Node does not have jcr:versionHistory " + getPath());
+ }
try
{
@@ -2463,11 +2618,15 @@
// calculating same name index
if (sdata.getQPath().getName().getAsString().equals(srcPath.getName().getAsString()))
+ {
++sameNameIndex;
+ }
// skeep unchanged
if (sdata.getOrderNumber() == j)
+ {
continue;
+ }
NodeData newData = sdata;
// change same name index
@@ -2557,7 +2716,9 @@
{
PropertyImpl prop = (PropertyImpl)dataManager.getItem(nodeData(), new QPathEntry(name, 1), false);
if (prop == null || prop.isNode())
+ {
throw new PathNotFoundException("Property not found " + name);
+ }
return prop;
}
@@ -2568,7 +2729,9 @@
// locked, should be unlocked
if (!session.getLockManager().isLockHolder(this.nodeData()))
+ {
throw new LockException("There are no permission to unlock the node " + getPath());
+ }
// remove mix:lockable properties (as the node is locked)
doUnlock();
@@ -2606,8 +2769,10 @@
PropertyData existed = (PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(name, 0));
if (existed == null)
+ {
throw new RepositoryException("Property data is not found " + name.getAsString() + " for node "
+ nodeData().getQPath().getAsString());
+ }
TransientPropertyData tdata =
new TransientPropertyData(QPath.makeChildPath(getInternalPath(), name), existed.getIdentifier(), existed
@@ -2806,8 +2971,10 @@
// addAutoCreatedItems(node.nodeData(), primaryTypeName);
if (LOG.isDebugEnabled())
+ {
LOG.debug("new node : " + node.getPath() + " name: " + " primaryType: " + node.getPrimaryNodeType().getName()
+ " index: " + node.getIndex() + " parent: " + parentNode);
+ }
// launch event
session.getActionHandler().postAddNode(node);
@@ -2822,7 +2989,9 @@
ItemData pdata = dataManager.getItemData(nodeData(), new QPathEntry(name, 1));
if (pdata != null && !pdata.isNode())
+ {
return true;
+ }
}
catch (RepositoryException e)
{
@@ -2837,7 +3006,9 @@
(PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_MERGEFAILED, 0));
if (mergeFailed == null)
+ {
return;
+ }
List<ValueData> mf = new ArrayList<ValueData>();
for (ValueData mfvd : mergeFailed.getValues())
@@ -3009,7 +3180,7 @@
// check read conditions
if (canRead(item))
{
- next = (ItemImpl)session.getTransientNodesManager().readItem(item, nodeData(), true, false);
+ next = session.getTransientNodesManager().readItem(item, nodeData(), true, false);
}
else
{
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-06-30 13:23:12 UTC (rev 2726)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-07-01 06:53:53 UTC (rev 2727)
@@ -49,6 +49,8 @@
import org.exoplatform.services.jcr.impl.xml.importing.ContentImporter;
import org.exoplatform.services.jcr.impl.xml.importing.StreamImporter;
import org.exoplatform.services.jcr.util.IdGenerator;
+import org.exoplatform.services.log.ExoLogger;
+import org.exoplatform.services.log.Log;
import org.exoplatform.services.security.ConversationState;
import org.exoplatform.services.security.Identity;
import org.xml.sax.ContentHandler;
@@ -99,6 +101,11 @@
public class SessionImpl implements ExtendedSession, NamespaceAccessor
{
+ /**
+ * Logger.
+ */
+ private static Log log = ExoLogger.getLogger("exo.jcr.component.core.SessionImpl");
+
public static final int DEFAULT_LAZY_READ_THRESHOLD = 100;
private final RepositoryImpl repository;
@@ -216,13 +223,14 @@
*/
public void checkPermission(String absPath, String actions) throws AccessControlException
{
-
try
{
JCRPath jcrPath = locationFactory.parseAbsPath(absPath);
AccessControlList acl = dataManager.getACL(jcrPath.getInternalPath());
if (!accessManager.hasPermission(acl, actions, getUserState().getIdentity()))
+ {
throw new AccessControlException("Permission denied " + absPath + " : " + actions);
+ }
}
catch (RepositoryException e)
{
@@ -237,6 +245,8 @@
throws InvalidSerializedDataException, PathNotFoundException, SAXException, RepositoryException
{
+ checkLive();
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -276,6 +286,8 @@
throws InvalidSerializedDataException, IOException, PathNotFoundException, RepositoryException
{
+ checkLive();
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -317,6 +329,9 @@
public void exportWorkspaceSystemView(OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException,
PathNotFoundException, RepositoryException
{
+
+ checkLive();
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -356,6 +371,9 @@
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
throws PathNotFoundException, SAXException, RepositoryException
{
+
+ checkLive();
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -392,6 +410,8 @@
public void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse)
throws IOException, PathNotFoundException, RepositoryException
{
+ checkLive();
+
LocationFactory factory = new LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig = (WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -466,7 +486,9 @@
String[] names = new String[attributes.size()];
int i = 0;
for (String name : attributes)
+ {
names[i++] = name;
+ }
return names;
}
@@ -477,6 +499,7 @@
* @deprecated use WorkspaceContainerFacade instead of using container
* directly
*/
+ @Deprecated
public ExoContainer getContainer()
{
return container;
@@ -497,6 +520,7 @@
PathNotFoundException, ConstraintViolationException, VersionException, RepositoryException
{
+ checkLive();
NodeImpl node = (NodeImpl)getItem(parentAbsPath);
// checked-in check
if (!node.checkedOut())
@@ -531,12 +555,14 @@
*/
public ItemImpl getItem(String absPath) throws PathNotFoundException, RepositoryException
{
-
+ checkLive();
JCRPath loc = locationFactory.parseAbsPath(absPath);
ItemImpl item = dataManager.getItem(loc.getInternalPath(), true);
if (item != null)
+ {
return item;
+ }
throw new PathNotFoundException("Item not found " + absPath + " in workspace " + workspaceName);
}
@@ -618,7 +644,9 @@
{
uri = namespaces.get(prefix);
if (uri != null)
+ {
return uri;
+ }
}
return workspace.getNamespaceRegistry().getURI(prefix);
@@ -637,9 +665,12 @@
*/
public Node getNodeByIdentifier(String identifier) throws ItemNotFoundException, RepositoryException
{
+ checkLive();
Item item = dataManager.getItemByIdentifier(identifier, true);
if (item != null && item.isNode())
+ {
return (Node)item;
+ }
throw new ItemNotFoundException("Node not found " + identifier + " at " + workspaceName);
}
@@ -649,6 +680,7 @@
*/
public Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException
{
+ checkLive();
Item item = dataManager.getItemByIdentifier(uuid, true);
if (item != null && item.isNode())
@@ -675,6 +707,7 @@
*/
public Node getRootNode() throws RepositoryException
{
+ checkLive();
Item item = dataManager.getItemByIdentifier(Constants.ROOT_UUID, true);
if (item != null && item.isNode())
{
@@ -737,15 +770,17 @@
name = ((SimpleCredentials)credentials).getUserID();
}
else
+ {
throw new LoginException(
"Credentials for the authentication should be CredentialsImpl or SimpleCredentials type");
+ }
SessionFactory sessionFactory = (SessionFactory)container.getComponentInstanceOfType(SessionFactory.class);
ConversationState newState =
new ConversationState(new Identity(name, userState.getIdentity().getMemberships(), userState.getIdentity()
.getRoles()));
- return (Session)sessionFactory.createSession(newState);
+ return sessionFactory.createSession(newState);
}
@@ -785,6 +820,7 @@
throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException,
InvalidSerializedDataException, RepositoryException
{
+ checkLive();
NodeImpl node = (NodeImpl)getItem(parentAbsPath);
if (!node.checkedOut())
{
@@ -821,6 +857,21 @@
}
/**
+ * Checks if session is alive. Currently only logs a warning, but newer JCR versions will throw an exception.
+ * @throws RepositoryException
+ */
+ public void checkLive() throws RepositoryException
+ {
+ if (!live)
+ {
+ log
+ .warn(
+ "This kind of operation is forbidden after a session.logout(), please note that an exception will be raised in the next jcr version.",
+ new Exception());
+ }
+ }
+
+ /**
* {@inheritDoc}
*/
public boolean itemExists(String absPath)
@@ -828,7 +879,9 @@
try
{
if (getItem(absPath) != null)
+ {
return true;
+ }
}
catch (RepositoryException e)
{
@@ -855,13 +908,16 @@
public void move(String srcAbsPath, String destAbsPath) throws ItemExistsException, PathNotFoundException,
VersionException, LockException, RepositoryException
{
+ checkLive();
JCRPath srcNodePath = getLocationFactory().parseAbsPath(srcAbsPath);
NodeImpl srcNode = (NodeImpl)dataManager.getItem(srcNodePath.getInternalPath(), false);
JCRPath destNodePath = getLocationFactory().parseAbsPath(destAbsPath);
if (destNodePath.isIndexSetExplicitly())
+ {
throw new RepositoryException("The relPath provided must not have an index on its final element. "
+ destNodePath.getAsString(false));
+ }
NodeImpl destParentNode = (NodeImpl)dataManager.getItem(destNodePath.makeParentPath().getInternalPath(), true);
@@ -889,10 +945,14 @@
// Check if versionable ancestor is not checked-in
if (!srcNode.parent().checkedOut())
+ {
throw new VersionException("Parent or source Node or its nearest ancestor is checked-in");
+ }
if (!srcNode.checkLocking())
+ {
throw new LockException("Source parent node " + srcNode.getPath() + " is locked ");
+ }
ItemDataMoveVisitor initializer =
new ItemDataMoveVisitor((NodeData)destParentNode.getData(), destNodePath.getName().getInternalName(),
@@ -939,20 +999,27 @@
*/
public void setNamespacePrefix(String prefix, String uri) throws NamespaceException, RepositoryException
{
+ checkLive();
NamespaceRegistryImpl nrg = (NamespaceRegistryImpl)workspace.getNamespaceRegistry();
if (!nrg.isUriRegistered(uri))
+ {
throw new NamespaceException("The specified uri:" + uri + " is not among "
+ "those registered in the NamespaceRegistry");
+ }
if (nrg.isPrefixMaped(prefix))
+ {
throw new NamespaceException("A prefix '" + prefix + "' is currently already mapped to " + nrg.getURI(prefix)
+ " URI persistently in the repository NamespaceRegistry "
+ "and cannot be remapped to a new URI using this method, since this would make any "
+ "content stored using the old URI unreadable.");
+ }
if (namespaces.containsKey(prefix))
+ {
throw new NamespaceException("A prefix '" + prefix + "' is currently already mapped to "
+ namespaces.get(prefix) + " URI transiently within this Session and cannot be "
+ "remapped to a new URI using this method, since this would make any "
+ "content stored using the old URI unreadable.");
+ }
nrg.validateNamespace(prefix, uri);
namespaces.put(prefix, uri);
prefixes.put(uri, prefix);
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionHistoryImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionHistoryImpl.java 2010-06-30 13:23:12 UTC (rev 2726)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionHistoryImpl.java 2010-07-01 06:53:53 UTC (rev 2727)
@@ -94,6 +94,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public VersionHistoryDataHelper getData()
{
return (VersionHistoryDataHelper)super.getData();
@@ -111,6 +112,7 @@
(PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_VERSIONABLEUUID, 0));
if (versionableUuid != null)
+ {
try
{
return new String(versionableUuid.getValues().get(0).getAsByteArray());
@@ -123,6 +125,7 @@
{
LOG.error("jcr:versionableUuid, error of read " + e + ". Version history " + getPath(), e);
}
+ }
throw new ItemNotFoundException("A property jcr:versionableUuid is not found. Version history " + getPath());
}
@@ -138,7 +141,9 @@
VersionImpl version =
(VersionImpl)dataManager.getItem(nodeData(), new QPathEntry(Constants.JCR_ROOTVERSION, 0), true);
if (version == null)
+ {
throw new VersionException("There are no root version in the version history " + getPath());
+ }
return version;
}
@@ -184,8 +189,10 @@
VersionImpl version =
(VersionImpl)dataManager.getItem(nodeData(), new QPathEntry(jcrVersionName.getInternalName(), 1), pool);
if (version == null)
+ {
throw new VersionException("There are no version with name '" + versionName + "' in the version history "
+ getPath());
+ }
return version;
}
@@ -199,13 +206,17 @@
NodeData versionData = getVersionDataByLabel(label);
if (versionData == null)
+ {
throw new RepositoryException("There are no label '" + label + "' in the version history " + getPath());
+ }
VersionImpl version = (VersionImpl)dataManager.getItemByIdentifier(versionData.getIdentifier(), true);
if (version == null)
+ {
throw new VersionException("There are no version with label '" + label + "' in the version history "
+ getPath());
+ }
return version;
@@ -219,7 +230,9 @@
checkValid();
if (this.getVersionDataByLabel(label) == null)
+ {
return false;
+ }
return true;
}
@@ -233,7 +246,9 @@
NodeData versionData = getVersionDataByLabel(label);
if (versionData != null && version.getUUID().equals(versionData.getIdentifier()))
+ {
return true;
+ }
return false;
}
@@ -296,7 +311,9 @@
String[] res = new String[vlabels.size()];
for (int i = 0; i < vlabels.size(); i++)
+ {
res[i] = vlabels.get(i);
+ }
return res;
}
@@ -306,6 +323,7 @@
public void removeVersion(String versionName) throws ReferentialIntegrityException, AccessDeniedException,
UnsupportedRepositoryOperationException, VersionException, RepositoryException
{
+ checkValid();
// get version (pool it to be able to invalidate the version on final)
VersionImpl version = (VersionImpl)version(versionName, true);
@@ -314,8 +332,10 @@
// getReferences!
List<PropertyData> refs = dataManager.getReferencesData(version.getInternalIdentifier(), true);
if (refs.size() > 0)
+ {
throw new ReferentialIntegrityException("There are Reference property pointed to this Version "
+ refs.get(0).getQPath().getAsString());
+ }
PlainChangesLog changes = new PlainChangesLogImpl(session.getId());
@@ -359,7 +379,7 @@
{// V2's successor
if (successorsData != null)
{// to redirect V2's successor
- // case of VH graph merge
+ // case of VH graph merge
for (ValueData svalue : successorsData.getValues())
{
predecessor.removeAddSuccessor(version.getInternalIdentifier(),
@@ -430,7 +450,9 @@
NodeData version = getData().getVersionData(jcrPath.getName().getInternalName());
if (version == null)
+ {
throw new VersionException("Version is not found " + jcrPath.getAsString(false));
+ }
return version;
}
@@ -525,7 +547,9 @@
dataManager.getTransactManager().save(changes);
}
else
+ {
throw new VersionException("Label not found " + labelName);
+ }
}
@@ -534,6 +558,7 @@
public void addVersion(NodeData versionableNodeData, String uuid, SessionChangesLog changesLog)
throws RepositoryException
{
+ checkValid();
// nt:version
NodeData versionData =
TransientNodeData.createNodeData(nodeData(), new InternalQName(null, nextVersionName()), Constants.NT_VERSION,
@@ -583,7 +608,7 @@
}
VersionImpl predecessor = (VersionImpl)dataManager.getItemByIdentifier(new String(pib), false);
predecessor.addSuccessor(versionData.getIdentifier(), changesLog);
-
+
predecessorsNew.add(new TransientValueData(pib));
}
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionImpl.java 2010-06-30 13:23:12 UTC (rev 2726)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/version/VersionImpl.java 2010-07-01 06:53:53 UTC (rev 2727)
@@ -116,10 +116,14 @@
String videntifier = new String(successorsValues.get(i).getAsByteArray());
VersionImpl version = (VersionImpl)dataManager.getItemByIdentifier(videntifier, true);
if (version != null)
+ {
successors[i] = version;
+ }
else
+ {
throw new RepositoryException("Successor version is not found " + videntifier + ", this version "
+ getPath());
+ }
}
}
catch (IOException e)
@@ -175,6 +179,8 @@
public void addSuccessor(String successorIdentifier, PlainChangesLog changesLog) throws RepositoryException
{
+ checkValid();
+
ValueData successorRef = new TransientValueData(new Identifier(successorIdentifier));
PropertyData successorsProp =
@@ -219,6 +225,8 @@
public void addPredecessor(String predeccessorIdentifier, PlainChangesLog changesLog) throws RepositoryException
{
+ checkValid();
+
ValueData predeccessorRef = new TransientValueData(new Identifier(predeccessorIdentifier));
PropertyData predeccessorsProp =
@@ -442,9 +450,13 @@
SessionImpl restoreSession, boolean removeExisting, SessionChangesLog delegatedLog) throws RepositoryException
{
+ checkValid();
+
if (LOG.isDebugEnabled())
+ {
LOG.debug("Restore on parent " + destParent.getQPath().getAsString() + " as " + name.getAsString()
+ ", removeExisting=" + removeExisting);
+ }
DataManager dmanager = restoreSession.getTransientNodesManager().getTransactManager();
@@ -462,6 +474,8 @@
throws RepositoryException
{
+ checkValid();
+
DataManager dmanager = restoreSession.getTransientNodesManager().getTransactManager();
NodeData vh = (NodeData)dmanager.getItemData(nodeData().getParentIdentifier()); // version
@@ -480,7 +494,9 @@
{
if (prds[i].getUUID().equals(anotherVersion.getUUID())
|| ((VersionImpl)prds[i]).isSuccessorOrSameOf(anotherVersion))
+ {
return true;
+ }
}
return false;
}
13 years, 10 months