Skip to content

Commit 4141ad9

Browse files
authored
Merge pull request #14411 from iterate-ch/bugfix/MD-18856
Fix #14410.
2 parents 49a57d8 + 356fd9a commit 4141ad9

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Cyberduck
22
https://cyberduck.io/
33

4+
8.5.8
5+
- [Bugfix] Failure reverting previous version in vault (Cryptomator, OneDrive, Google Drive, Dropbox) (#14410)
6+
47
8.5.7
58
- [Bugfix] Cannot create or duplicate files with any suffix (#14263)
69
- [Bugfix] Do not use MLST when running with interoperability connection profile (FTP) (#14333)

dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxVersioningFeature.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,18 @@ public AttributedList<Path> list(final Path file, final ListProgressListener lis
7979
final List<FileMetadata> entries = result.getEntries();
8080
final DropboxAttributesFinderFeature attr = new DropboxAttributesFinderFeature(session);
8181
for(FileMetadata revision : entries) {
82+
if(StringUtils.equals(revision.getRev(), file.attributes().getVersionId())) {
83+
continue;
84+
}
8285
if(log.isDebugEnabled()) {
8386
log.debug(String.format("Found revision %s", revision));
8487
}
8588
final PathAttributes attributes = attr.toAttributes(revision);
8689
attributes.setDuplicate(true);
87-
versions.add(new Path(file.getParent(), PathNormalizer.name(revision.getName()), file.getType(),
88-
attributes));
90+
versions.add(new Path(file.getParent(), PathNormalizer.name(revision.getName()), file.getType(), attributes));
91+
listener.chunk(file.getParent(), versions);
8992
}
90-
return versions.filter(new NullFilter<Path>() {
91-
@Override
92-
public boolean accept(final Path test) {
93-
return !StringUtils.equals(test.attributes().getVersionId(), file.attributes().getVersionId());
94-
}
95-
});
93+
return versions;
9694
}
9795
catch(DbxException e) {
9896
throw new DropboxExceptionMappingService().map("Failure to read attributes of {0}", e, file);

googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveVersioningFeature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public AttributedList<Path> list(final Path file, final ListProgressListener lis
9292
log.debug(String.format("Found revision %s", revision));
9393
}
9494
versions.add(new Path(file).withAttributes(this.toAttributes(revision)));
95+
listener.chunk(file.getParent(), versions);
9596
}
9697
page = list.getNextPageToken();
9798
}

nextcloud/src/main/java/ch/cyberduck/core/nextcloud/NextcloudVersioningFeature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public AttributedList<Path> list(final Path file, final ListProgressListener lis
119119
attributes.setFileId(file.attributes().getFileId());
120120
attributes.setVersionId(PathNormalizer.name(resource.getHref().getPath()));
121121
versions.add(new Path(file.getParent(), file.getName(), file.getType(), attributes));
122+
listener.chunk(file.getParent(), versions);
122123
}
123124
return versions.filter(new TimestampComparator(false));
124125
}

onedrive/src/main/java/ch/cyberduck/core/onedrive/features/GraphVersioningFeature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public AttributedList<Path> list(Path file, ListProgressListener listener) throw
8383
for(final DriveItemVersion version : items.stream().skip(1).collect(Collectors.toList())) {
8484
versions.add(new Path(file).withAttributes(attributes.toAttributes(parentMetadata, version)));
8585
}
86+
listener.chunk(file.getParent(), versions);
8687
}
8788
catch(OneDriveAPIException e) {
8889
throw new GraphExceptionMappingService(fileid).map("Failure to read attributes of {0}", e, file);

www/update/changelog.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,20 @@
7777
<strong><a target="_blank" href="https://fosstodon.org/@cyberduck">Follow us</a></strong> on Mastodon.
7878
</p>
7979

80+
<p>
81+
<a target="_blank" href="https://trac.cyberduck.io/milestone/8.5.8"><strong>Version 8.5.8</strong></a>
82+
</p>
83+
<ul>
84+
<li><span class="label label-warning">Bugfix</span> Failure reverting previous version in vault (Cryptomator, OneDrive, Google Drive, Dropbox) (<a
85+
target="_blank" href="https://trac.cyberduck.io/ticket/14410">#14410</a>)</li>
86+
</ul>
87+
8088
<p>
8189
<a target="_blank" href="https://trac.cyberduck.io/milestone/8.5.7"><strong>Version 8.5.7</strong></a>
8290
</p>
8391
<ul>
84-
<li><span class="label label-warning">Bugfix</span> Cannot create or duplicate files with any suffix (#14263)</li>
92+
<li><span class="label label-warning">Bugfix</span> Cannot create or duplicate files with any suffix (<a
93+
target="_blank" href="https://trac.cyberduck.io/ticket/14263">#14263</a>)</li>
8594
<li><span class="label label-warning">Bugfix</span> Do not use MLST when running with interoperability connection
8695
profile (FTP) (<a
8796
target="_blank" href="https://trac.cyberduck.io/ticket/14333">#14333</a>)

0 commit comments

Comments
 (0)