Эх сурвалжийг харах

After successful upload update permission to have correct resharing info

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 1 жил өмнө
parent
commit
d772fe54f5

+ 1 - 0
app/src/androidTest/java/com/owncloud/android/AbstractOnServerIT.java

@@ -234,6 +234,7 @@ public abstract class AbstractOnServerIT extends AbstractIT {
             getFileByDecryptedRemotePath(parentFolder.getDecryptedRemotePath() + uploadedFileName);
             getFileByDecryptedRemotePath(parentFolder.getDecryptedRemotePath() + uploadedFileName);
 
 
         assertNotNull(uploadedFile.getRemoteId());
         assertNotNull(uploadedFile.getRemoteId());
+        assertNotNull(uploadedFile.getPermissions());
 
 
         if (localBehaviour == FileUploader.LOCAL_BEHAVIOUR_COPY ||
         if (localBehaviour == FileUploader.LOCAL_BEHAVIOUR_COPY ||
             localBehaviour == FileUploader.LOCAL_BEHAVIOUR_MOVE) {
             localBehaviour == FileUploader.LOCAL_BEHAVIOUR_MOVE) {

+ 1 - 0
app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java

@@ -1389,6 +1389,7 @@ public class UploadFileOperation extends SyncOperation {
         file.setModificationTimestampAtLastSyncForData(remoteFile.getModifiedTimestamp());
         file.setModificationTimestampAtLastSyncForData(remoteFile.getModifiedTimestamp());
         file.setEtag(remoteFile.getEtag());
         file.setEtag(remoteFile.getEtag());
         file.setRemoteId(remoteFile.getRemoteId());
         file.setRemoteId(remoteFile.getRemoteId());
+        file.setPermissions(remoteFile.getPermissions());
     }
     }
 
 
     public interface OnRenameListener {
     public interface OnRenameListener {