chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r927322 - /incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java
Date Thu, 25 Mar 2010 10:01:03 GMT
Author: jens
Date: Thu Mar 25 10:01:03 2010
New Revision: 927322

URL: http://svn.apache.org/viewvc?rev=927322&view=rev
Log:
CMIS-180
fix via link issue in in-memory provider

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java?rev=927322&r1=927321&r2=927322&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-server/opencmis-server-inmemory/src/main/java/org/apache/opencmis/inmemory/server/AtomLinkInfoProvider.java
Thu Mar 25 10:01:03 2010
@@ -86,14 +86,14 @@ public class AtomLinkInfoProvider {
       objInfo.setIsCurrentVersion (ver == ver.getParentDocument().getLatestVersion(false));

       objInfo.setHasVersionHistory(true);
       objInfo.setWorkingCopyId(pwc==null ? null : pwc.getId());
-      objInfo.setWorkingCopyOriginalId(pwc==null ? null : pwc.getId());
+      objInfo.setWorkingCopyOriginalId(pwc==ver ? ver.getParentDocument().getLatestVersion(false).getId()
: null);
     } else if (so instanceof VersionedDocument) {
       VersionedDocument doc = (VersionedDocument) so;
       DocumentVersion pwc = doc.getPwc();
       objInfo.setIsCurrentVersion (false); 
       objInfo.setHasVersionHistory(true);
       objInfo.setWorkingCopyId(pwc==null ? null : pwc.getId());
-      objInfo.setWorkingCopyOriginalId(pwc==null ? null : pwc.getId());      
+      objInfo.setWorkingCopyOriginalId(null);      
     } else { // unversioned document
       objInfo.setIsCurrentVersion (true); 
       objInfo.setHasVersionHistory(false);



Mime
View raw message