You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/07/10 22:09:32 UTC
svn commit: r1501954 -
/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
Author: fmui
Date: Wed Jul 10 20:09:32 2013
New Revision: 1501954
URL: http://svn.apache.org/r1501954
Log:
AtomPub client: fixed an issue with deleteTree with some servers
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java?rev=1501954&r1=1501953&r2=1501954&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java Wed Jul 10 20:09:32 2013
@@ -456,10 +456,12 @@ public class ObjectServiceImpl extends A
// find the down links
String link = loadLink(repositoryId, folderId, Constants.REL_DOWN, null);
+ String childrenLink = null;
if (link != null) {
// found only a children link, but no descendants link
// -> try folder tree link
+ childrenLink = link;
link = null;
} else {
// found no or two down links
@@ -476,6 +478,10 @@ public class ObjectServiceImpl extends A
}
if (link == null) {
+ link = childrenLink;
+ }
+
+ if (link == null) {
throwLinkException(repositoryId, folderId, Constants.REL_DOWN, Constants.MEDIATYPE_DESCENDANTS);
}