Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Brey <alvaro.brey@nextcloud.com>2022-04-07 15:31:56 +0300
committerGitHub <noreply@github.com>2022-04-07 15:31:56 +0300
commitee0f4ee607b28d0e6d6cbf169f06a661427eee59 (patch)
tree19007bbb408cdd6f63062c3d44bf30d7975b6f36
parent424fdb42ac855e4ed86e2ee6cc3a1b281293f831 (diff)
parent42235874cf6f6a4b6798f94da15ea5f86d1f0abf (diff)
Merge pull request #856 from nextcloud/backport/850/stable-2.10rc-2.10.0-02
[stable-2.10] Retrieve permission when doing a gallery search
-rw-r--r--library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
index 4c32bca2..dd52c70f 100644
--- a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
+++ b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
@@ -26,8 +26,6 @@
*/
package com.owncloud.android.lib.resources.files;
-import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC;
-
import com.owncloud.android.lib.resources.status.NextcloudVersion;
import com.owncloud.android.lib.resources.status.OCCapability;
@@ -47,6 +45,8 @@ import java.util.TimeZone;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
+import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC;
+
public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.SearchMethod {
private static final String HEADER_CONTENT_TYPE_VALUE = "text/xml";
private static final String DAV_NAMESPACE = "DAV:";
@@ -126,7 +126,6 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.
selectPropsElement.appendChild(creationDate);
selectPropsElement.appendChild(quotaUsedElement);
selectPropsElement.appendChild(quotaAvailableElement);
- selectPropsElement.appendChild(permissionsElement);
selectPropsElement.appendChild(sizeElement);
}
if (searchType == SearchRemoteOperation.SearchType.GALLERY_SEARCH) {
@@ -139,6 +138,7 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.
selectPropsElement.appendChild(etagElement);
selectPropsElement.appendChild(remoteIdElement);
selectPropsElement.appendChild(favoriteElement);
+ selectPropsElement.appendChild(permissionsElement);
Element fromElement = query.createElementNS(DAV_NAMESPACE, "d:from");
Element scopeElement = query.createElementNS(DAV_NAMESPACE, "d:scope");