Skip to content

Commit 04c23e3

Browse files
committed
A COPY method invocation MUST NOT duplicate any write locks active on the source.
1 parent 157855d commit 04c23e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webdav/src/main/java/ch/cyberduck/core/dav/DAVCopyFeature.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import ch.cyberduck.core.ConnectionCallback;
2121
import ch.cyberduck.core.DescriptiveUrl;
2222
import ch.cyberduck.core.Path;
23+
import ch.cyberduck.core.PathAttributes;
2324
import ch.cyberduck.core.exception.BackgroundException;
2425
import ch.cyberduck.core.features.Copy;
2526
import ch.cyberduck.core.features.Lock;
@@ -57,7 +58,7 @@ public Path copy(final Path source, final Path copy, final TransferStatus status
5758
session.getClient().copy(new DAVPathEncoder().encode(source), target, status.isExists());
5859
}
5960
listener.sent(status.getLength());
60-
return copy.withAttributes(source.attributes());
61+
return copy.withAttributes(new PathAttributes(source.attributes()).withLockId(null));
6162
}
6263
catch(SardineException e) {
6364
throw new DAVExceptionMappingService().map("Cannot copy {0}", e, source);

0 commit comments

Comments
 (0)